Hi, I'm using an e-commerce application (Delavo) on my server to manage by business. One of the rules for running an affiliate program to be integrated with the script is that my sites must be stamped with necessary Javascript codes on all of my webpages. However recently I just got my site re-designed and it contains menu buttons with mouse-over capabilities. Now with the increased codes, I am confused on how to type the format of the javascript code correctly to the menu buttons. Simple JS codes required are as follows: <script>jvmPrintHref('http://YOUR_LINK_HERE','DESCRIPTION_HERE');</script> Example 1: <script>jvmPrintHref('http://www.orderlink','Order Now');</script> or if using an image instead: <script>jvmPrintHref('http://www.server.com/index.html','<img src=http://www.server.com/homepage.gif>');</script> Ok, all these are straightforward.. But now my menu button codes look like this: <a href="http://The-Link-Here.com" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/nav01b.jpg',1)"><img src="images/nav01.jpg" name="Image1" border="0" /></a> Can anyone help me please? I need to know how to stamp the java-script code to this menu button. The new site I mentioned about can been seen here: http://www.hotmarketingvideos.com/new.html You can look at the source code to look through at the format of the menu buttons. So I just need someone to correctly give me the format URL of the JS code. Thanks. Regards, Ameer
this is a rather badly coded mouseover effect, produced by dreamweaver using inline javascript - really bad form and very 1999 (actually, these scripts started coming up right about then) i take it you want all affiliate sites to embed this menu complete with the images? that's going to be slightly odd to see, considering designs etc. - a text only version will be far more acceptable. to be honest - before you start worrying about your new site's affiliations, you may want to go to your designers and get them to change your menu system to one that can use text (for search engine optimisation) - as well as fix all inline javascript, embedded script tags and inline css, get rid of tables, design a semantical headings system and so forth. unless, of course, you don't care about search engines
Hi Dimitar, Thank you for your reply and for your opinion. Actually the designer originally designed it using CSS but I'm not familiar with it. So I instructed him to create a table-based site instead. And the huge number of tables that you see there, it's done my me and not by the designer.