Log in

View Full Version : Easy Mouseover BB Code


yoyoyoyo
06-16-2005, 06:34 AM
Here is a BB Code that will let you easily do mouseover effects:

Title: Mouseover
Tag: mouse
Replacement: <a href=""
onMouseOver="document.pic1.src='{param}'"
onMouseOut="document.pic1.src='{option}'">
<img src="{param}" name=pic1 border=0"></a>
Example: http://site.com/2.jpg
Use {option}: Yes

The Geek
06-16-2005, 07:59 AM
Wont this get a JS error if more than 1 appears on a page?

buro9
06-16-2005, 08:50 AM
Wont this get a JS error if more than 1 appears on a page?
Won't the <a> get replaced by [url] and then parsed as <a>... thus stripping the event javascript?

yoyoyoyo
06-16-2005, 11:51 AM
Won't the <a> get replaced by [url] and then parsed as <a>... thus stripping the event javascript?Nope- it works for me. As far as more than one per page- that is a problem. Can anyone figure out a way to make it work in multiple instances?