+ Reply to Thread
Results 1 to 6 of 6

Thread: Put a link on a script with onklick?

  1. #1
    dinmikkith is offline x10Hosting Member dinmikkith is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    12

    Put a link on a script with onklick?

    Hi,

    I don't know if this is the right place but if I have a script like:

    <script src="http://www.samplesite.com/PODBB/podbb.js" hight="250" width="500"></script> how can I put a link on it?

  2. #2
    nunoabc's Avatar
    nunoabc is offline x10 Sophmore nunoabc is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    151

    Re: Put a link on a script with onklick?

    it isn't like that. in the link you, for example, have
    <a href="http://blablabla.com/">BlaBlaBla</a>
    but you now put
    <a onclick="window.location='http://blablabla.com'">BlaBlaBla</a>

    or did I miss understood?
    Last edited by nunoabc; 04-18-2008 at 06:37 PM.
    Best regards,
    Nuno Cunha

    Tuga Gaming: http://tuga-gaming.net/

  3. #3
    a24money is offline x10Hosting Member a24money is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    3

    Cool Re: Put a link on a script with onklick?

    or you can use javascript.
    It should be formated as shown below:

    <html>
    <head>

    <script type="text/javascript">
    function gotopage ()
    {
    document.location.href="the url";
    }
    </script>

    </head>

    <body>

    <img src="a image" onclick="gotopage()" />

    </body>
    </html>

  4. #4
    dinmikkith is offline x10Hosting Member dinmikkith is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    12

    Re: Put a link on a script with onklick?

    Hm, there is no img tag its like script src="blblabla" and this is displaying a picture from an external server. how can i link this

  5. #5
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: Put a link on a script with onklick?

    You'd have to modify the external Javascript...

  6. #6
    gayaniw is offline x10Hosting Member gayaniw is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    7

    Re: Put a link on a script with onklick?

    <script language="javascript">
    function gotourl(){
    window.location="http://www.redtubevideo.info";
    }
    </script>
    <a onclick="script:gotourl()">redtube video</a>


    try this bro

+ Reply to Thread

Similar Threads

  1. A script to ping servers from a DB
    By -fedexer- in forum Programming Help
    Replies: 18
    Last Post: 04-05-2008, 11:38 AM
  2. Replies: 3
    Last Post: 03-25-2008, 06:33 AM
  3. Google Earning Script. 25$ a day.
    By deaddevil in forum The Marketplace
    Replies: 6
    Last Post: 01-05-2008, 12:31 AM
  4. Link Exchange
    By Conor in forum Scripts & 3rd Party Apps
    Replies: 117
    Last Post: 12-09-2007, 12:20 PM
  5. link cpanel with vbulletin script
    By chunsiang in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 09-10-2007, 09:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers