PDA

View Full Version : Is it possible to to that with Java ...


wallsaint
07-22-2001, 10:53 AM
Hi

I looking for javascript code on my site which does the following : Letīs say on my site is a link to my sponsor. If the user doesnīt leave my site to my sponsor, a window will pop up.

Is it possible to to this in java ? Thanks.

wallsaint

PaulC
07-22-2001, 01:12 PM
Javascript can do that.

I don't know the code but try searching the javascript web sites.

'Plat
07-22-2001, 02:32 PM
put this in ur <body> tag onUnload="xit()"

this goes under under body:


<script language="JavaScript">
function xit(){
window.open('http://www.yoursponser.com','popup')
}
</script>

wallsaint
07-23-2001, 02:51 PM
īPlat

Thanks for your answer. But I think you didnīt get my problem. I only want to pop up is the visitor doesnīt visit my sponsor. So, if he leaves to my sponsor i donīt want a pop up. Is this possible ?

koon
07-23-2001, 03:10 PM
it is almost there ....

put onclick="hello=false;"
on your link ...

<script language="JavaScript">
if hello = true{
function xit(){
window.open('http://www.yoursponser.com','popup')
}
}
</script>

put this in ur <body> tag onUnload="xit()"

i dont have the code with me right now
i just wrote out it should be similar like this one

blind
07-23-2001, 03:48 PM
Why not just have the link to your sponsor open in a new page?