![]() |
Alright Programming Gurus--I have a question???
Is there a way to invoke a popup without having code in the <heah></head> of a page.
I want to call a php or perl script from an image tag ex: <img src=whatever.php> And have it cause a popup. problem is most popup/popunder scripts require code the be in the <head>, and I thought I'd get popup out of image leachers instead of blocking hotlinking completely...any ideas? Much Thanks |
You can't do it by loading an image, but you can put the code in an a tag.
<a href="javascript:window.open('someurl.php','window name','width=123,height=123');"><img src"someimg.jpg"></a> |
mayby if you showed your image through a flash animation.. then people would have to hotlink the flash file.
|
tricks i have seen are putting a huge blank image on the right hand of the screen, as the person scrolls theyre mouse over that area javascript is executed via a mouseover and opens a page ;)
|
thanks guys...you are giving me a few ideas here
|
That's all you guys got?
|
submitting gallerys huh
|
Quote:
Lets call it .xxxanaxpg And then I could make sure that every browser in the world has support for that picture format.. And then I could sell the exclusive rights to the popup code to you.. I can have it all done tomorrow at 10am. :error |
ich will heroin von dir kaufen
|
I don't know if this is what you are looking for but it is placed in the <body> only.
XOXOXO *Krystal* <script> //Pop-under window- By JavaScript Kit //Credit notice must stay intact for use //Visit http://javascriptkit.com for this script //specify page to pop-under var popunder="http://www.camcutie.com/" //Pop-under only once per browser session? (0=no, 1=yes) //Specifying 0 will cause popunder to load every time page is loaded var once_per_session=1 ///No editing beyond here required///// function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end hahahaha -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(off set, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')hahahaha''){ loadpopunder() document.cookie="popunder=yes" } } function loadpopunder(){ win2=window.open(popunder) win2.blur() window.focus() } if (once_per_sessionhahahaha0) loadpopunder() else loadornot() </script> |
All times are GMT -7. The time now is 11:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123