![]() |
I need a code for a pop up window...can anyone help?
I need something that doesn't require a tag in the <head> of the html
when someone clicks a certain image it pops open a window with specific dimensions anyone got something for me? |
Java okay????
|
Quote:
|
Can do that easily in JavaScript.
jDoG |
I have a code for a pop under that beats sp2 if you want it
|
<IMG SRC=blah.gif onClick="window.open('otherpage.html', 'framename','width=640,height=480')">
Will that do? |
Quote:
jDoG |
Quote:
|
just whorin through...
|
<SCRIPT LANGUAGE="JavaScript">
<!-- function GetCookie(name) { var arg=name+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i<clen) { var j=i+alen; if (document.cookie.substring(i,j)hahahahaarg) return "here"; i=document.cookie.indexOf(" ",i)+1; if (ihahahaha0) break; } return null; } var visit=GetCookie("COOKIE1"); if (visithahahahanull){ var expire=new Date(); window.name = "thiswin"; newwin=open("valentines.htm", "dispwin", "width=590,height=300,scrollbars=no,menubar=no "); document.cookie="COOKIE1=here; expires=Thu 01-01-2004 00:00:00 GMT;"; } // --> </SCRIPT> |
Quote:
thanks |
valentines.htm replace that with your htm page
|
Quote:
|
<SCRIPT>
<!-- BEGIN EXIT CODE var console=true; function exit() haha123; if (console) haha123; window.showModalDialog("http://domain.com/pop.html",null,"dialogWidth:" + screen.availWidth + "px;dialogHeight:" + screen.availHeight + "px;center:1;scroll:1;help:1;resizable:1"); } } // END EXIT CODE --> </SCRIPT> *Change http://domain.com/pop.html to the URL or path to your console file. *Add on BeforeUnload=" exit() " to your body tag *Add on Click=" exit=false " to all links you don't want to trigger the console (sponsor links and internal links) EDIT.... Opps.. looks like I was not fast enough.. here it is anyways in case you ever need it lol :-) |
All times are GMT -7. The time now is 03:21 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123