CMS Forum Index CMS
CMS Made Simple
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rollover doesn't work!

 
Post new topic   Reply to topic    CMS Forum Index -> Installation Help
View previous topic :: View next topic  
Author Message
Mike
Guest





PostPosted: Wed Aug 04, 2004 8:17 am    Post subject: Rollover doesn't work! Reply with quote

My Rollover Pics doesn't work with the Script...anybody has an answer?!
Back to top
wishy
Site Admin


Joined: 11 Jun 2004
Posts: 84
Location: Fairless Hills, Pa USA

PostPosted: Wed Aug 04, 2004 9:46 am    Post subject: Re: Rollover doesn't work! Reply with quote

Mike wrote:
My Rollover Pics doesn't work with the Script...anybody has an answer?!


Can you give us an example of either code or a site where it's not working? That's one of those things you just need to see.
Back to top
View user's profile Send private message
Mike!
Guest





PostPosted: Wed Aug 04, 2004 10:55 am    Post subject: Reply with quote

sure

http://www.nightsleepingkills.com/web/

The Rollover-Effect should be when you are over the buttons "News, Shows, bands, etc..."

The Copyright removed automatically (sorry my mother tongue isn't english..) after i made another template....but i will add a link to the linksection...(if this is possible to use cmsmadesimple legal...)

have a nice day!

Mike
Code:
<HTML>
<HEAD>
<TITLE>(IN)Official Website of Nightsleeping kills!</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript"><!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY BGCOLOR=#FFFFFF background="Bilder/background_pattern.gif" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad="MM_preloadImages('Bilder/rollover_04.jpg','Bilder/rollover_05.jpg','Bilder/rollover_06.jpg','Bilder/rollover_07.jpg','Bilder/rollover_08.jpg','Bilder/rollover_09.jpg','Bilder/rollover_10.jpg')">
<TABLE WIDTH=704 BORDER=0 CELLPADDING=0 CELLSPACING=0>
  <!--DWLayoutTable-->
  <TR bgcolor="#FFFFFF">
    <TD height="99" COLSPAN=9 valign="top"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="702" height="99">
        <param name="movie" value="nsk4a.swf">
        <param name="quality" value="high">
        <embed src="nsk4a.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="702" height="99"></embed></object></TD>
  </TR>
  <TR>
    <TD height="39" COLSPAN=2 valign="top"> <IMG SRC="Bilder/index_03.jpg" WIDTH=207 HEIGHT=39 ALT=""></TD>
    <TD width="64" valign="top"> <a href="?page=news" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','Bilder/rollover_04.jpg',1)"><img src="Bilder/index_04.jpg" alt="News" name="Image14" width="64" height="39" border="0"></a></TD>
    <TD width="68" valign="top"> <a href="?page=shows" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','Bilder/rollover_05.jpg',1)"><img src="Bilder/index_05.jpg" alt="Shows" name="Image13" width="68" height="39" border="0"></a></TD>
    <TD width="66" valign="top"> <a href="?page=band" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','Bilder/rollover_06.jpg',1)"><img src="Bilder/index_06.jpg" alt="Band" name="Image15" width="66" height="39" border="0"></a></TD>
    <TD width="76" valign="top"> <a href="?page=media" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','Bilder/rollover_07.jpg',1)"><img src="Bilder/index_07.jpg" alt="Media" name="Image12" width="76" height="39" border="0"></a></TD>
    <TD width="91" valign="top"> <a href="http://feedbook.i-net4you.de/4896" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','Bilder/rollover_08.jpg',1)"><img src="Bilder/index_08.jpg" alt="Guestbook" name="Image16" width="91" height="39" border="0"></a></TD>
    <TD width="56" valign="top"> <a href="?page=links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','Bilder/rollover_09.jpg',1)"><img src="Bilder/index_09.jpg" alt="Links" name="Image17" width="56" height="39" border="0"></a></TD>
    <TD width="76" valign="top"> <a href="?page=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','Bilder/rollover_10.jpg',1)"><img src="Bilder/index_10.jpg" alt="Forum" name="Image18" width="76" height="39" border="0"></a></TD>
  </TR>
  <TR>
    <TD width="179" height="503" valign="top" background="Bilder/index_13.jpg"> <IMG SRC="Bilder/index_11.jpg" WIDTH=179 HEIGHT=503 ALT=""></TD>
    <TD COLSPAN=8 ROWSPAN=2 valign="top" background="Bilder/index_12.jpg"><br>{content}</TD>
  </TR>
  <TR>
    <TD   height="19" valign="top" background="Bilder/index_13.jpg"></TD>
  </TR>
  <TR>
    <TD height="1"></TD>
    <TD width="28"></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD></TD>
  </TR>
  <TR>
    <TD height="1"> <IMG SRC="Bilder/spacer.gif" WIDTH=179 HEIGHT=1 ALT=""></TD>
    <TD colspan="3"> <IMG SRC="Bilder/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD>
    <TD></TD>
    <TD colspan="4"> <IMG SRC="Bilder/spacer.gif" WIDTH=76 HEIGHT=1 ALT=""></TD>
  </TR>
</TABLE>
</BODY>
</HTML>
Back to top
wishy
Site Admin


Joined: 11 Jun 2004
Posts: 84
Location: Fairless Hills, Pa USA

PostPosted: Wed Aug 04, 2004 11:55 am    Post subject: Reply with quote

Mike! wrote:
sure

http://www.nightsleepingkills.com/web/

The Rollover-Effect should be when you are over the buttons "News, Shows, bands, etc..."

The Copyright removed automatically (sorry my mother tongue isn't english..) after i made another template....but i will add a link to the linksection...(if this is possible to use cmsmadesimple legal...)

have a nice day!

Mike


Well, this is something I didn't know about with using the smarty template engine. In order to make javascript work, it needs to be surrounded by {literal}{/literal} tags.

The documentation for that is here http://smarty.php.net/faq.php#18

However, I'm going to code a automatic workaround in 0.4. (at least attempt it)

So, if you could just do
Code:
{literal}<script javascript>...</script>{/literal}
, that should fix you right up.

Thanks for bringing that to my attention.

Ted
Back to top
View user's profile Send private message
Mike
Guest





PostPosted: Wed Aug 04, 2004 12:32 pm    Post subject: Reply with quote

that fixs it!

thx too Smile
Back to top
wishy
Site Admin


Joined: 11 Jun 2004
Posts: 84
Location: Fairless Hills, Pa USA

PostPosted: Wed Aug 04, 2004 12:59 pm    Post subject: Reply with quote

Very cool. At least I know the problem is there.

Very nice site, by the way. I'm glad CMS worked for you.

Ted
Back to top
View user's profile Send private message
Bewbs
N00b


Joined: 03 Aug 2004
Posts: 9

PostPosted: Wed Aug 04, 2004 2:04 pm    Post subject: Reply with quote

great site, and now that i know i need to surround javascript with {literal} commands world domination will soon be mine... muahahahahahaha
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Aug 05, 2004 8:48 am    Post subject: Reply with quote

thx again Smile

I've added a link to my Linksection with specialthanks Wink

The CMSmadeSimple just rules...*gg*
Back to top
Display posts from previous:   
Post new topic   Reply to topic    CMS Forum Index -> Installation Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.10 © 2001, 2002 phpBB Group