Click to See Complete Forum and Search --> : ..:: Help please ::..


..::Bro::..
02-19-2003, 09:14 PM
I understand how enoying those pop up banners are and I DO NOT want to make one but....

I would like to have something pop up when a client clicks on a link (just a pop up)... been trying to figure it out but all the sites I look at "hide" the code and there's nothing to be found...

ex. let's say a client clicks on (contact) and WITHOUT going to another page with a pop up, how would i have the "pop up" excecute within the same page?

If you could help me out I would be grateful...

..:: Bro ::..

Jona
02-19-2003, 09:24 PM
Yup...

win = window.open("","winName","fullscreen=no,width=400,height=400,status=yes,menu=yes");
win.document.write("<HTML>")
win.document.write("The rest of your HTML document");

OR

Same as above just put this... win = window.open("filename.html",otherParams)

..::Bro::..
02-19-2003, 09:29 PM
Originally posted by Jona
Yup...

win = window.open("","winName","fullscreen=no,width=400,height=400,status=yes,menu=yes");
win.document.write("<HTML>")
win.document.write("The rest of your HTML document");

OR

Same as above just put this... win = window.open("filename.html",otherParams)

ya see i did the above (1st suggestion) here....

http://www.smartads.info/contact/ty <--- look at the code

Jona
02-19-2003, 09:35 PM
Yes, here is the code they are using:

function openindex()
{

var OpenWindow=window.open("","Contact",
"height=150,width=350");

OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>Contact Us</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR='FFFFFF'>")
OpenWindow.document.write("<CENTER>")
OpenWindow.document.write("<table width='335' border='0' cellspacing='0' cellpadding='0' height='150'>")
OpenWindow.document.write("<tr>")
OpenWindow.document.write("<td width='87'><img src='http://www.smartads.info/images/00-rev.JPG' alt='' height='151' width='87' border='0'></td>")
OpenWindow.document.write("<td>")
OpenWindow.document.write("<div align='center'>")
OpenWindow.document.write("Thank You for your submission!")
OpenWindow.document.write("<p>Please allow 48 hours<br>")
OpenWindow.document.write("for our team to respond.</p>")
OpenWindow.document.write("</div>")
OpenWindow.document.write("</td>")
OpenWindow.document.write("</tr>")
OpenWindow.document.write("</table>")
OpenWindow.document.write("</CENTER>")
OpenWindow.document.write("</HTML>")

}

And the body tag... <BODY Onload="openindex()">

Edit it as you like.

..::Bro::..
02-19-2003, 09:54 PM
Originally posted by Jona
Yes, here is the code they are using:

function openindex()
{

var OpenWindow=window.open("","Contact",
"height=150,width=350");

OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>Contact Us</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR='FFFFFF'>")
OpenWindow.document.write("<CENTER>")
OpenWindow.document.write("<table width='335' border='0' cellspacing='0' cellpadding='0' height='150'>")
OpenWindow.document.write("<tr>")
OpenWindow.document.write("<td width='87'><img src='http://www.smartads.info/images/00-rev.JPG' alt='' height='151' width='87' border='0'></td>")
OpenWindow.document.write("<td>")
OpenWindow.document.write("<div align='center'>")
OpenWindow.document.write("Thank You for your submission!")
OpenWindow.document.write("<p>Please allow 48 hours<br>")
OpenWindow.document.write("for our team to respond.</p>")
OpenWindow.document.write("</div>")
OpenWindow.document.write("</td>")
OpenWindow.document.write("</tr>")
OpenWindow.document.write("</table>")
OpenWindow.document.write("</CENTER>")
OpenWindow.document.write("</HTML>")

}

And the body tag... <BODY Onload="openindex()">

Edit it as you like.

THAT WAS MY SITE LOL...

THX

..::Bro::..
02-19-2003, 09:55 PM
I need something that DOESN'T go to another page!

It just pops a window when you click on the button!...

Jona
02-19-2003, 09:55 PM
Yeah.. but that was what you asked for. Is there something else you needed?

Jona
02-19-2003, 09:56 PM
Oh. OK, let's see..

<INPUT TYPE=button onClick="openindex()">

That good?

..::Bro::..
02-19-2003, 10:00 PM
hmmm.. that might work... i'll give it a go... thank you!

..:: Bro ::..