...

View Full Version : How Do I include a link in a popup?



draoi
02-12-2004, 03:21 AM
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.

glenngv
02-12-2004, 03:33 AM
http://www.codingforums.com/showthread.php?s=&threadid=4437

draoi
02-12-2004, 04:51 PM
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.

sad69
02-12-2004, 07:09 PM
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.

draoi
02-13-2004, 03:29 AM
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.

sad69
02-13-2004, 04:17 AM
Hey check out this link:
http://hatbox.losrios.edu/~fichera/JavaScript/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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum