52 users online (1 members and 51 guests)  

Thread: Links


  Results 1 to 6 of 6

Related

  1. links links and selectbox    Forum: HTML Forum
    Replies: 1
  2. No Links    Forum: HTML Forum
    Replies: 15
  3. Replies: 0
  1. #1
    Ajax's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    15

    Links

    How do i make a link in my page when clicked,open up a new window/browser? Thanks.

  2. #2
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    Use something like below to open a brand new browser window:

    <a href="SomeURLHere" target="_blank">Click here to open new browser window</a>

    If you use the above, every link with that target opens a brand new browser window.

    If you use a named target (see below), the first link clicked with the specified target will open a new browser window. Each subsequent link clicked with the specified target will open in the same (second) browser window.

    <a href="SomeURLHere" target="new">Click here</a>

  3. #3
    Ajax's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    15
    Thanks for the help. One more question. How do i get this link to have the left image when clicked,play the url @56K and the right image when clicked, play the url @128K on the same line. Thanks.

    <b><a href="http://www.someurl.com/playat56K.pls"><img src="speaker6.gif" border="0"><a href="http://www.someurl.com/playat128K.pls"><img src="speaker6.gif" border="0"><br><i><font face="Arial, Helvetica, sans-serif">Listen To Radio @ 56K or 128K</font></i></a></b>
    Last edited by Ajax; 03-26-2003 at 10:15 AM.

  4. #4
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    use an image map on one image to associate the left and right halves to the appropriate files ,such as:

    <IMG ISMAP BORDER=0 WIDTH=90 HEIGHT=90
    USEMAP=#uniquename SRC=.jpg>
    <MAP NAME=uniquename>
    <AREA ALT=" 1of4" COORDS=" 0, 0, 44, 90" HREF= file1.htm>
    <AREA ALT=" 2of4" COORDS=" 45, 0, 90, 90" HREF=file2.htm>
    </MAP>

  5. #5
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    if u want to control the size of the window being opened,

    put this between <head> and </head>

    *****code begins*****
    <script language='Javascript'>
    function OpenWindow()
    {
    name = "";
    url = "test.html";
    options = "height=330,width=210,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,left=0";
    window.open(url,name,options);
    }
    </script>
    *****code ends*****

    and use this where u want to put the link
    <img src='url' onClick='OpenWindow();'>

  6. #6
    Ajax's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2002
    Posts
    15
    Thanks for the help guys,really appreciate it.

    Btw:When i click a link,i want the max window open,what values do i enter for the script? Thanks.
    Last edited by Ajax; 03-27-2003 at 07:59 PM.



Tags for this Thread