PDA

View Full Version : MX2004 - Templates & JS paths


mclarko
12-05-2006, 09:55 AM
HI!

Adobe ImageReady very kindly creates some rollovers for me:

<A HREF="http://www.energy4u2.co.uk/" TARGET="_self"
ONMOUSEOVER="changeImages('logo', '../images/header/logo-over.jpg'); return true;"
ONMOUSEOUT="changeImages('logo', '../images/header/logo.jpg'); return true;">
<IMG NAME="logo" SRC="../images/header/logo.jpg" WIDTH=161 HEIGHT=149 BORDER=0 ALT=""></A>

...BUT! when I save the code in my DW template with the great new code above, it ignores the important file paths in the mouseOver events, whilst it does work on the IMG tag path.


Can any one help with this?


Malco

chriskq
12-05-2006, 12:14 PM
if u can use a little css u should learn how to do rollovers using just css.... so with no clunky javascript.

i can post some code for u.. is your site up anywhere to test?

mclarko
12-05-2006, 01:28 PM
Its a complex header for a website, which Adobe ImageReady has spliced up with rollovers in a big table. I dont see how css can help here, unless there is software that outputs spliced images in <Div> tags?

Kind Rgds

Malco

domedia
12-05-2006, 01:48 PM
Can any one help with this?

Hello Malco,
Which version of DW are you using, and is it updated?

mclarko
12-05-2006, 02:53 PM
Its MX2004 and i didnt know I could update it.


Found a hack, which is to make the relevant tags editable in the template. This will be messy though, should i ever rejig my graphic and export new html for it!!!

Malco

domedia
12-05-2006, 03:27 PM
Update:
http://www.adobe.com/support/dreamweaver/downloads_updaters.html#dwmx2004

I think your best option is just to type in the full url instead.