Results 1 to 7 of 7

Thread: Help with making graphic buttons into drop down menu links...

  1. #1
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Help with making graphic buttons into drop down menu links...

    I made some graphic buttons and would like for them to work as a mouse over menu so others can access the links I would like to attach to that each button. I don't want to link each button to a main page with the links for that section. I'd love to skip that step and save space.

    If you can understand what I am asking I would be greatful for any advice on where or how I can accomplish this or any changes I can make to an oalready existing html/script code.

  2. #2
    Join Date
    Sep 2004
    Location
    Georgia
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I do not know the answer to your question, but i think you might have more success in getting an answer if you had actually posted in somewhere other then the html section of the forum, html is one of the simplest forms of webpage coding, where you should post if probably the javascript/dhtml category

  3. #3
    Join Date
    Sep 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I believe what you are trying to do is have an image for a button? the code is

    <img src="name"><a href="url">name</a>

    or are you trying to use an image as an imput button? I don't quite remember the codes for buttons, I never use them. Just make a button and then add the link inside of them.

    Hope this helps
    Rob

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Isn't it this?:

    <a href="url"><img src="name">name</a>

    Ah, whatever, i'm sure either will work.
    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Sep 2004
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Is this what you where going for?

    Code:
    
    <!-- place the following code  within the <BODY> of your document -->
    
    <script language="javascript" type="text/javascript">
    
    normal_image = new Image();
    normal_image.src = "path/img.gif";
    
    mouseover_image = new Image();
    mouseover_image.src = "path/img2.gif";
    
    
    <!-- repeat the 4 lines above for any subsequent images. -->
    
    function swap(){
    if (document.images){
    for (var x=0;
    x<swap.arguments.length;
    x+=2) {
    document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
    }
    }
    }
    </script>
    
    <!-- Place this code where you want the rollover buttons to appear.
    Parts to change here: name_of_img (to match <img name="", below), Image variable (e.g mouseover_image/normal_image - to match above code), href element to your documents url and the img name & src. -->
    
    <a href="page.html" onMouseOver="swap('name_of_img','normal_image')" onMouseOut="swap('name_of_img','mouseover_image')"><img name="name_of_img" src="path/img.gif" border="0"></a>
    Last edited by Nate_Bro; 09-25-2004 at 03:17 PM.

  6. #6
    Join Date
    Sep 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, it's <a href="URL"><img src="name">name</a> after all. That's what happens when you're tired and dont pay attention lol. Sorry about that.

  7. #7
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I will give them a try.

    I know how to link the small images as a button I just wanted to make it so when you moused over that image it gives you a dropdown menu which also allows you to click on any one of the names in that particular menu and go to the link connected to each name. Is this a little more clear?
    I am not sure that this might even be possible.

    I haven't had time to play with this but I will give it a try soon and see if any off the information you gave me works.

    Thank you!

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
  •