This content has been marked as final.
Show 6 replies
-
1. Re: Java script rollover not happening
Newsgroup_User Nov 10, 2008 1:09 PM (in response to luadke)> I have copied html code from fireworks.
That's usually a mistake.
Looking at your code, I can see that you have applied both a rollover the
the image, AND AN IMAGE MAP to the image. Whyzzat? You sure don't need
both....
Just delete the image map from each button.
<td><a href="javascript:;"
onmouseout="MM_swapImage('f_r1_c1','','images-site08/slices/banner/f_r1_c1.jpg',1);"
onmouseover="MM_swapImage('f_r1_c1','','images-site08/slices/banner/f_r1_c1_f2.jpg',1);"> <img
name="f_r1_c1"
src=" http://www.nilreb.com/images-site08/slices/banner/f_r1_c1.jpg"
width="58" height="79" border="0" usemap="#m_f_r1_c1" alt="" /></a></td>
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"blackpaint.co.uk" <webforumsuser@macromedia.com> wrote in message
news:gfa74r$5nq$1@forums.macromedia.com...
> Hi the page is this http://www.nilreb.com/luke.html
>
> I have copied html code from fireworks. If you look in the code you can
> see
> that the top left is meant to be changing on rollover. Any help?
>
> thanks
>
-
2. Re: Java script rollover not happening
luadke Nov 10, 2008 1:57 PM (in response to luadke)Thanks Murray for you response.
I tried deleting those maps - but it didn't seem to help.
I have made a new page here http://nilreb.com/temp01.html where I have pasted the same copied code - and it works fine. I cant see any differences between the two
Also - do you know why the 'content' div seems to be at 1001 pixles pushing it out to the right?
Thanks -
3. Re: Java script rollover not happening
luadke Nov 10, 2008 2:03 PM (in response to luadke)looks like the page that isn't working is missing all this code (below). Where shall I put it on the page?
<script type="text/javascript">
<!--
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 .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++) x.src=x.oSrc;
}
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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers .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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//--> -
4. Re: Java script rollover not happening
Newsgroup_User Nov 10, 2008 2:11 PM (in response to luadke)Where is it in the page that is working? Put it there.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"blackpaint.co.uk" <webforumsuser@macromedia.com> wrote in message
news:gfab3k$ap9$1@forums.macromedia.com...
> looks like the page that isn't working is missing all this code (below).
> Where
> shall I put it on the page?
>
> <script type="text/javascript">
> <!--
> 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 .indexOf("#")!=0){ d.MM_p[j]=new Image;
> d.MM_p[j++].src=a;}}
> }
>
> function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++)
> x.src=x.oSrc;
> }
>
> 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[n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers .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))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
> //-->
>
>
-
-
6. Re: Java script rollover not happening
luadke Nov 10, 2008 3:05 PM (in response to luadke)I've tried a few way - can't seem to work it


