Help – adding this JS (Rollover Text To Change Image ) to page
-
Want rollover text (also link) to change image once rolled over.
Found this and worked perfect in dreamweaver (html) but having a hard time in wordpress page. Anyone familiar with a quick / easy resolve?
– Is there a good JS embed on page plugin?
– Could someone map out where / how JS needs to be added in header,footer or function? (tried a bunch but…)
FYI – Yes, using Twenty Twelve themeAgain, this code works perfect but script not working in wordpress. Appreciate
<html> <head> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function roll(img_name1, img_src1) { document[img_name1].src = img_src1; } //--> </SCRIPT> </head> <body> <ul> <li><a href="1.htm" onmouseover="roll('poster', '1.gif')">111</a> <li><a href="2.htm" onmouseover="roll('poster', '2.gif')">222</a> <li><a href="3.htm" onmouseover="roll('poster', '3.gif')">333</a> </ul> <br><br><br><br> <p align="center"><img src="1.gif" name="poster"></p> </body> </html>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help – adding this JS (Rollover Text To Change Image ) to page’ is closed to new replies.