[pmwiki-users] Custom Markup for Rollover

Paul Johnston paul at pjnetsolutions.com
Fri Jul 14 06:45:21 CDT 2006


I am struggling trying to write a custom markup for a rollover and am 
wondering if it's possible.

I have been given a site to "wiki-ise" as someone explained it to me, 
and it's got lots of image rollovers as links, and they want to keep them.

It's all done in DreamWeaver and uses DW's JS functions, so the HTML for 
a rollover looks like this:

<a href="<linkurl>"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('ImageId','','img2',1)">
    <img src="img1"
        name="ImageId"
        alt="alt text">
</a>

(my lines added for clarity).

How would you go about outputting this from wiki markup like this:

(:rollover_link link img1|img2"alt" :)

I'm not sure if that's the best way to do it, but it's the way I'm doing 
it at the moment. Suggestions?

Paul






More information about the pmwiki-users mailing list