Results 1 to 8 of 8

Thread: Add Javascript or Image to the Menu ?

  1. #1
    Join Date
    Feb 2006
    Location
    الامارات
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Add Javascript or Image to the Menu ?

    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
    Last edited by Club2share.com; 03-09-2006 at 05:18 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You've left the script credit off of your page, see DD's terms of use. 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. See this thread for the proper posting format for asking a question.

    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):

    Code:
    "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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Location
    الامارات
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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 ..

  4. #4
    Join Date
    Feb 2006
    Location
    الامارات
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the multi post but where do i get the documentation ?

  5. #5
    Join Date
    Feb 2006
    Location
    الامارات
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If it is the menu I think it is, see config.htm from the distribution zip found on this page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Feb 2006
    Location
    الامارات
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •