Results 1 to 2 of 2

Thread: back to previous page code atached to a jpg button i made

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default back to previous page code atached to a jpg button i made

    hi I was hoping to get some help with this

    O K I'm working in dream weaver and i have a .jpg button i made

    and i need it to have the code (((back to previous page ))) attached to it


    ((the main thing is the code has to work with the .jpg image))

    any help out there



    i did Search for my problem and all i came up with was a hyperlink that would take the place of the button

    i do no a little code

    this is the site

    http://justicearledge.com/randy_home.html


    one more thing

    this is the JavaScript i found

    <a href="javascript:history.back()">Try it now</a>



    so i was wandering if I'm just over looking something

    this is my code from dream weaver

    <img name="masternav_r3_c8_s1" src="master%20nav_r3_c8_s1.jpg" width="51" height="6" border="0" id="masternav_r3_c8_s1" alt="" /></a><a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('masternav_r3_c8_s1','','master nav_r3_c8_s2.jpg',1)"></a></td>


    any help would be awesome

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    256
    Thanks
    1
    Thanked 21 Times in 21 Posts

    Default

    HTML Code:
    <a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('masternav_r3_c8_s1','','master nav_r3_c8_s2.jpg',1)"><img name="masternav_r3_c8_s1" src="master%20nav_r3_c8_s1.jpg" width="51" height="6" border="0" id="masternav_r3_c8_s1" alt="" /></a>
    In the code you showed you didn't even enclose the image in a href tag, so the image won't even be a link at that point.

    I looked at your site and I have to suggest recoding it. Your are using tables for the layout and that is really a bad thing. Your should redo it using divs and css. Also you have a 1px alignment issue on the page that has the picture with a guy holding a sign that says "We can do" or something like that.

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
  •