SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast jared's Avatar
    Join Date
    Sep 2001
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onmousedown do a link with js

    <td class="tdrow" height="24" onmousedown="javascript.link('href="fileinfo.php?file=$file" target="info"');">
    All I'm trying to do is what a stabdard a href would accomplish, without having any specific link text, or an image...

    <a href="href="fileinfo.php?file=$file" target="info">link text here</a>
    Thanks for your help,

    jared
    signature

  2. #2
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your TD you could

    <td onclick="top.location.href='url'"></td>

    That would make the cell act like a link. That seems like what you are trying to accomplish with all that code.
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  3. #3
    SitePoint Enthusiast jared's Avatar
    Join Date
    Sep 2001
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    excellent

    thanks for the help, I do have one small problem though.

    onclick="info.location.href='fileinfo.php?file=$file'">
    I have a left side frame called info, which is what I wish to change, however I get a 'info' not defined error.

    strange...

    jared
    signature

  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's because frames are accessed through the frames collection. Try this:

    Code:
    onclick="top.frames['info'].location.href='fileinfo.php?file=$file'"

    M@rco

  5. #5
    SitePoint Enthusiast jared's Avatar
    Join Date
    Sep 2001
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    that did it!

    that did it! thanks to you both for your help,

    jared
    signature


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
  •