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
    New to the CF scene
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How Do I include a link in a popup?

    I am trying to include a clickable link in a disabled right click pop up message.

    Something like "All content copyrighted. Click Here for free stuff."

    I found this script but have been unable to alter it to make it function.

    <script language="Javascript1.2">
    am = "This site copyrighted click<a href="www.site.htm">here</a> for free stuff.";
    bV = parseInt(navigator.appVersion)
    bNS = navigator.appName=="Netscape"
    bIE = navigator.appName=="Microsoft Internet Explorer"
    function nrc(e) {
    if (bNS && e.which > 1){
    alert(am)
    return false
    } else if (bIE && (event.button >1)) {
    alert(am)
    return false;
    }
    }
    document.onmousedown = nrc;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (bNS && bV<5) window.onmousedown = nrc;
    </script>

    Any suggestions? thank you for your time.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No I understand how to do a basic no right click disable, and that it is not secure. I cannot think of anything that truely is for long. We have the images in picture window format, just showing a small portion of the image for detail.

    I wanted to know how to include a link in the popup, so I could redirect people to a page where they could get full graphics for free. But I wanted it clickable like a regular link on a webpage, because blind links suck.

    I read through the entire post and did not see this addressed, but it is late and I could have missed it.

    Thank you for your attention.

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    These guys have come up with an encryption scheme for your javascript functions.

    If your graphics and stuff aren't fully javascript based then this may not be for you. It's also not free...

    Here is the link: (you want the scrambler)
    http://www.ycode.com/

    There may be some free hack of it someplace, but I haven't found it yet.

    Good luck,
    Sadiq.

  • #5
    New to the CF scene
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am not concerned with security, if they are really that intrested in my simplistic code, more power to them

    What I am simply trying to do is add a link into the popup. I thought it would be a nice way to redirect someone.

  • #6
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey check out this link:
    http://hatbox.losrios.edu/~fichera/J...ipt/alert.html

    I gathered that alert boxes cannot have hypertext links in them. However, this DHTML version allows you too.

    I haven't run the code or anything, and I'm not sure that the weird box on the page is an example. But it may be what you're looking for.

    Let me know how it goes,
    Sadiq.


  •  

    Posting Permissions

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