GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Alright Programming Guru's--I have a question??? (https://gfy.com/showthread.php?t=444779)

xxxanax 03-16-2005 10:59 AM

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

mortenb 03-16-2005 11:21 AM

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>

mortenb 03-16-2005 11:22 AM

mayby if you showed your image through a flash animation.. then people would have to hotlink the flash file.

teksonline 03-16-2005 11:30 AM

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 ;)

xxxanax 03-16-2005 11:49 AM

thanks guys...you are giving me a few ideas here

xxxanax 03-16-2005 01:53 PM

That's all you guys got?

Evil1 03-16-2005 01:55 PM

submitting gallerys huh

mortenb 03-16-2005 02:55 PM

Quote:

Originally Posted by xxxanax
That's all you guys got?

Well.. I could make a new picture format for you.. One that has popup code included..
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

feN 03-16-2005 03:09 PM

ich will heroin von dir kaufen

camcutie 03-16-2005 03:20 PM

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