SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Froot r gewd SubKamran's Avatar
    Join Date
    May 2002
    Location
    North Star State
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Able to click <td>

    I have a header at the top of my page, rotating pics, but they are BGs of the <td> so, no one can click them...I want to use JavaScript or something so people are able to click the <td> and it would give the illusion their clicking on the image...see:

    http://www.newsbyteens.com/

    At the top...
    "Sometimes little is more."
    Kamran A
    Web Dev/Designer
    Keyboard not found: Please Press F1 to Continue

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you want to happen when a user clicks on the image?

    There are several techniques of achieving what you want. The first is to use an onClick="" event on the table cell and run a javascript command when they click on it. This will work fine but is not accessible for users without javascript. The second is to put a large stretched transparent gif in the cell with the image and make that a link - this avoids the javascript problem but is still not particularly accessible. The best option would be to have the image as a real image as opposed to a table cell background and then put it in a normal link (with a nice descriptive alt tag on the image).

  3. #3
    Froot r gewd SubKamran's Avatar
    Join Date
    May 2002
    Location
    North Star State
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't...it's a 1024x768 image, and some people have 800x600...

    OK, i'll do the onClick thing, but whats the style 'cursor:' for the hand cursor?
    "Sometimes little is more."
    Kamran A
    Web Dev/Designer
    Keyboard not found: Please Press F1 to Continue

  4. #4
    Froot r gewd SubKamran's Avatar
    Join Date
    May 2002
    Location
    North Star State
    Posts
    597
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    o also, I want it to be a hyperlink...so, wat's the onClick for that?
    "Sometimes little is more."
    Kamran A
    Web Dev/Designer
    Keyboard not found: Please Press F1 to Continue


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
  •