PDA

View Full Version : Add Javascript or Image to the Menu ?



Club2share.com
03-09-2006, 05:10 PM
Hello

i'm not sure if this can be done with the menu i'm use here

http://www.club2share.com

Say example if i need to add bookmark this Page in the menu is there any way we can do this ? also what about if i need to add small button with image ?

example button


<a href="http://www.club2share.com/">
<img alt src="http://www.club2share.com/images/blue/icons/foruicon.gif" align="bottom" width="16" height="16"></a>

bookmark


<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.club2share.com');">Click here to make Club2Share your default homepage</a>
Thankyou :)

jscheuer1
03-09-2006, 06:16 PM
You've left the script credit off of your page, see DD's terms of use (http://www.dynamicdrive.com/notice.htm). I seem to recognize this menu though, in its documentation it tells how to use images and javascript commands, read up.

Warning: Please include a link to the DD script in question in your post.

I believe the usage for the javascript you mention would be to substitute this in the link field for the item (double quotes are the quotes that delimit the field in the menu):


"javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.club2share.com');"

With this IE specific code, there is no telling for certain if this will work, it is the standard method for the menu though.

Club2share.com
03-09-2006, 06:45 PM
Hello

Thankyou for the info i will take a look at the documentation:)

and about the credit sorry about it but it seem to me the website where i have copy the script from they have removed it and i use the old version i just today upgrade to the new version .. btw i have retern it back .. :)

Club2share.com
03-09-2006, 06:54 PM
Sorry for the multi post but where do i get the documentation ?

Club2share.com
03-09-2006, 07:15 PM
Alright i think i find out how to add the image it just need to add the \\\ .

also if anyone would be nice to post the documentation maybe there is some other think we should learn ..

Thanks :)

jscheuer1
03-09-2006, 07:17 PM
If it is the menu I think it is, see config.htm from the distribution zip (http://www.dynamicdrive.com/dynamicindex1/hvmenu/hvmenu.zip) found on this page (http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm).

Club2share.com
03-10-2006, 04:16 AM
Thanks alot it is very usefull.. i was looking if there is away to make one menu have some other color like/bg/font etc.. is this can be done ?

i dont think i see it in the config.html ?

Club2Share :)

jscheuer1
03-10-2006, 04:52 AM
Those are all listed in config.htm and actually, very near the top of the page. You may need to upgrade to the version of the menu that the comes in the zip for all of the options listed in the zip's config.htm to work.