Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Help with home made script (?)

    Im having problems with a script i made; Please dont mock the script's contents, But i need some help:

    Code:
    <html>
    <script language="javascript">
    function click2(website) {
    var stay=confirm("LINKPRO:\nYou clicked a link! Which goes away from PokÚPage 341. We do not control the contents of the page you are navigating to.\nIt is not our 
    
    responsibilty of the contents of the page.\n-*Click OK to continue to the website.\n-*Click CANCEL to stay at PokÚPage341\n**Quick Check: The Address/link you click is: 
    
    "+website+" . **")
    
    if (!stay) {alert("The PokÚPage 341 Team\nKeeping the web safe.\nEmail:safety@pokepage341.cjb.net") }
    if (stay) { openme=window.open(website)  }
    }
    function linkpro{} {
    alert("Link-Pro\nIs to protect links that we do not control the content.\nVisit: http://www.geocities.com/vleaderv/linkpro for more infomation")
    }
    </script>
    <a href="javascript:click2(http://www.someoutsidesite.com);"><i><h6>Link-Pro ON</i></h6></a>
    </html>
    What i want to happen is when a certain links (i choose) are pressed this little thing comes up saying if you want to leave the site. But only for the outsider links.

    I cant type much, its my bed time.

    Please help, Thanks
    Regards
    VKiDV

  • #2
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    And it doesn't work?

    What does it do instead of working?
    Shawn

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    I see three things right off:

    1. you have link breaks in your stay variable
    2. you use curly braces instead of parenthesis in your declaration of the linkpro function
    3. you have a space in the word javascript in your a tag.

    Fix those then see where you are at.
    Last edited by JohnKrutsch; 10-06-2003 at 02:04 AM.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Planet Earth Code Poet: True
    Posts
    282
    Thanks
    0
    Thanked 1 Time in 1 Post
    Ok, how about a forth thing:

    4. you do not have the website within quotes when you use it as an argument while calling the click2 function.

  • #5
    Regular Coder
    Join Date
    Sep 2002
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by JohnKrutsch
    I see three things right off:

    1. you have link breaks in your stay variable
    2. you use curly braces instead of parenthesis in your declaration of the linkpro function
    3. you have a space in the word javascript in your a tag.

    Fix those then see where you are at.
    uhh thanks, i did not notice that :'(

    i'll try fix it now.

    thanks for your help.

    it was not doing anything; only an error :'(
    Regards
    VKiDV

  • #6
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Once you've done the changes, tell us if it still doesn't work
    Shawn


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •