SearchSearch   

Image Rollover not working

 
Goto page 1, 2
   Webmaster Forums (Home) -> Macromedia Dreamweaver RSS
Next:  One image BG out of 4 not appearing in ie  
Author Message
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 1) Posted: Mon Feb 26, 2007 11:25 pm
Post subject: Image Rollover not working
Archived from groups: macromedia>dreamweaver (more info?)

I'm stuck and frustrated....my image rollover is not working. I've deleted the
code twice and started over and can't figure it out...here is the code...can
someone please help me and see if you can figure something out. Thanks

<tr>
<td width="70" height="84" align="left" valign="top"><a
href="../Index.html" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('home','','../images_pg2/home_rollover.jpg',1)"><img
src="../images_pg2/home.jpg" name="home" width="70" height="84"
border="0"></a></td>
<td width="78" align="left" valign="top"><a href="../departments.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('departments','','../images_pg2/departs_rollover.jpg',
1)"><img src="../images_pg2/departs.jpg" name="departments" width="78"
height="84" border="0"></a></td>
<td width="76" align="left" valign="top"><a href="../board.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('board','','../images_pg2/board_rollover.jpg',1)"><img
src="../images_pg2/board.jpg" name="board" width="76" height="84"
border="0"></a></td>
<td width="77" align="left" valign="top"><a href="../forms.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('forms','','../images_pg2/forms_rollover.jpg',1)"><img
src="../images_pg2/forms.jpg" name="forms" width="77" height="84"
border="0"></a></td>
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 2) Posted: Mon Feb 26, 2007 11:25 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

It would be best to post a link to the page, so we could see the not working
part. Are none of these rollovers working? Do you get a js error on the
page?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"squirmywormy6" <webforumsuser DeleteThis @macromedia.com> wrote in message
news:ervq9i$kdj$1@forums.macromedia.com...
> I'm stuck and frustrated....my image rollover is not working. I've
> deleted the
> code twice and started over and can't figure it out...here is the
> code...can
> someone please help me and see if you can figure something out. Thanks
>
> <tr>
> <td width="70" height="84" align="left" valign="top"><a
> href="../Index.html" onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('home','','../images_pg2/home_rollover.jpg',1)"><img
> src="../images_pg2/home.jpg" name="home" width="70" height="84"
> border="0"></a></td>
> <td width="78" align="left" valign="top"><a href="../departments.html"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('departments','','../images_pg2/departs_rollover.jpg',
> 1)"><img src="../images_pg2/departs.jpg" name="departments" width="78"
> height="84" border="0"></a></td>
> <td width="76" align="left" valign="top"><a href="../board.html"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('board','','../images_pg2/board_rollover.jpg',1)"><img
> src="../images_pg2/board.jpg" name="board" width="76" height="84"
> border="0"></a></td>
> <td width="77" align="left" valign="top"><a href="../forms.html"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('forms','','../images_pg2/forms_rollover.jpg',1)"><img
> src="../images_pg2/forms.jpg" name="forms" width="77" height="84"
> border="0"></a></td>
>
Back to top
Deaf Web Designer

External


Since: Sep 23, 2006
Posts: 752



(Msg. 3) Posted: Tue Feb 27, 2007 1:08 am
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

My eyes hurt! <close both of my eyes with my hands on>

[q][i]Originally posted by: [b][b]squirmywormy6[/b][/b][/i]
I'm stuck and frustrated....my image rollover is not working. I've deleted
the code twice and started over and can't figure it out...here is the
code...can someone please help me and see if you can figure something out.
Thanks

<tr>
<td width="70" height="84" align="left" valign="top"><a
href="../Index.html" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('home','','../images_pg2/home_rollover.jpg',1)"><img
src="../images_pg2/home.jpg" name="home" width="70" height="84"
border="0"></a></td>
<td width="78" align="left" valign="top"><a href="../departments.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('departments','','../images_pg2/departs_rollover.jpg',
1)"><img src="../images_pg2/departs.jpg" name="departments" width="78"
height="84" border="0"></a></td>
<td width="76" align="left" valign="top"><a href="../board.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('board','','../images_pg2/board_rollover.jpg',1)"><img
src="../images_pg2/board.jpg" name="board" width="76" height="84"
border="0"></a></td>
<td width="77" align="left" valign="top"><a href="../forms.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('forms','','../images_pg2/forms_rollover.jpg',1)"><img
src="../images_pg2/forms.jpg" name="forms" width="77" height="84"
border="0"></a></td>[/q]
Back to top
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 4) Posted: Tue Feb 27, 2007 4:04 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

I don't have a site to publish this page to...it's for an internal site and no i'm not getting any js errors

Thanks
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 5) Posted: Tue Feb 27, 2007 4:04 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

So, how can we debug this without seeing it?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"squirmywormy6" <webforumsuser DeleteThis @macromedia.com> wrote in message
news:es1kqb$qr5$1@forums.macromedia.com...
>I don't have a site to publish this page to...it's for an internal site and
>no i'm not getting any js errors
>
> Thanks
Back to top
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 6) Posted: Tue Feb 27, 2007 4:36 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

Well, I'm new to this so that's why I posted the code for the rollover....I guess that didn't help. So i'm not sure what else I can do to get help.... Thanks
Back to top
Alan

External


Since: Jan 24, 2007
Posts: 1059



(Msg. 7) Posted: Tue Feb 27, 2007 4:36 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

One possible when rollovers don't work is that the "name" or "ID" of the
image is used more than once in the page. The name or ID must be unique.

It's also slightly possible that the name it's been given is a reserved
work. If there are no duplicate names- then change the image's "name" and
adjust/update the rollover behavior to the new name.

> Well, I'm new to this so that's why I posted the code for the rollover....I
> guess that didn't help. So i'm not sure what else I can do to get help....
> Thanks

--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 8) Posted: Tue Feb 27, 2007 4:36 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

Post the code to the whole page. There's more involved here than just what
you posted.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"squirmywormy6" <webforumsuser RemoveThis @macromedia.com> wrote in message
news:es1mmu$t7a$1@forums.macromedia.com...
> Well, I'm new to this so that's why I posted the code for the
> rollover....I guess that didn't help. So i'm not sure what else I can do
> to get help.... Thanks
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 9) Posted: Tue Feb 27, 2007 4:36 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

Didn't see any likely candidates for either....

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Alan" <please_dont_mail_me DeleteThis @example.com> wrote in message
news:C209CD1A.2C0CC8%please_dont_mail_me@example.com...
> One possible when rollovers don't work is that the "name" or "ID" of the
> image is used more than once in the page. The name or ID must be unique.
>
> It's also slightly possible that the name it's been given is a reserved
> work. If there are no duplicate names- then change the image's "name" and
> adjust/update the rollover behavior to the new name.
>
>> Well, I'm new to this so that's why I posted the code for the
>> rollover....I
>> guess that didn't help. So i'm not sure what else I can do to get
>> help....
>> Thanks
>
> --
> Alan
> Adobe Community Expert, dreamweaver
>
> http://www.adobe.com/communities/experts/
>
>
>
Back to top
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 10) Posted: Tue Feb 27, 2007 5:22 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

here is the code...
Thanks

<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
<!--
<body>

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>
<style type="text/css">
#Layer1 {
position:absolute;
left:374px;
top:16px;
width:423px;
height:55px;
z-index:1;
background-image: url(images_pg2/top2.jpg);
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0"
onLoad="MM_preloadImages('images_pg2/home_rollover.jpg','images_pg2/departs_roll
over.jpg','images_pg2/board_rollover.jpg','images_pg2/forms_rollover.jpg')">
<table id="Table_01" width="799" height="721" border="0" cellpadding="0"
cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="155" rowspan="3" align="left" valign="top">
<img src="images_pg2/intranet.jpg" width="155" height="188" alt=""></td>
<td width="219" rowspan="3" align="left" valign="top">
<img src="images_pg2/top1.jpg" width="219" height="188" alt=""></td>
<td height="55" colspan="5" valign="top"><img src="images_pg2/top2.jpg"
width="425" height="55"></td>
</tr>
<tr>
<td width="70" height="84" align="left" valign="top"><a href="Index.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('home','','images_pg2/home_rollover.jpg',1)"><img
src="images_pg2/home.jpg" name="home" width="70" height="84"
border="0"></a></td>
<td width="78" align="left" valign="top"><a href="departments.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('depts','','images_pg2/departs_rollover.jpg',1)"><img
src="images_pg2/departs.jpg" name="depts" width="78" height="84"
border="0"></a></td>
<td width="76" align="left" valign="top"><a href="board.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('board','','images_pg2/board_rollover.jpg',1)"><img
src="images_pg2/board.jpg" name="board" width="76" height="84"
border="0"></a></td>
<td width="77" align="left" valign="top"><a href="forms.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('forms','','images_pg2/forms_rollover.jpg',1)"><img
src="images_pg2/forms.jpg" name="forms" width="77" height="84"
border="0"></a></td>
<td width="124" align="left" valign="top">
<img src="images_pg2/extra.jpg" width="124" height="84" alt=""></td>
</tr>

<tr>
<td height="49" colspan="5" align="left" valign="top">
<img src="images_pg2/companylayout3_12.jpg" width="425" height="49"
alt=""></td>
</tr>

<tr>
<td height="1036" colspan="7"
valign="top"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="18"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Back to top
Alan

External


Since: Jan 24, 2007
Posts: 1059



(Msg. 11) Posted: Tue Feb 27, 2007 5:22 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

> <script type="text/JavaScript">
> <!--
> <body>
>
> function MM_swapImgRestore() { //v3.0

around line 5, delete <body>



--
Alan
Adobe Community Expert, dreamweaver

http://www.adobe.com/communities/experts/
Back to top
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 12) Posted: Tue Feb 27, 2007 5:43 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

That worked great for all of them EXCEPT the last rollover which is Forms....it's not working.

Thanks
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 13) Posted: Tue Feb 27, 2007 5:43 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

Rename it and reapply the rollover.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"squirmywormy6" <webforumsuser RemoveThis @macromedia.com> wrote in message
news:es1qk3$4uq$1@forums.macromedia.com...
> That worked great for all of them EXCEPT the last rollover which is
> Forms....it's not working.
>
> Thanks
Back to top
squirmywormy6

External


Since: Feb 26, 2007
Posts: 7



(Msg. 14) Posted: Tue Feb 27, 2007 6:31 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

PERFECT, that worked...thanks for your help and patience....
Back to top
Murray *ACE*

External


Since: Jul 29, 2006
Posts: 13227



(Msg. 15) Posted: Tue Feb 27, 2007 6:31 pm
Post subject: Re: Image Rollover not working
Archived from groups: per prev. post (more info?)

Be careful about how you name things!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"squirmywormy6" <webforumsuser RemoveThis @macromedia.com> wrote in message
news:es1tdp$8ea$1@forums.macromedia.com...
> PERFECT, that worked...thanks for your help and patience....
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Macromedia Dreamweaver
Goto page 1, 2
Page 1 of 2

 
You cannot post new topics in this forum
You cannot 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