asguy
07-27-2002, 09:52 AM
I'm using the javascript: window pop-up which when you click on a link on my website, the page opens in a new window. But something somewhere isn't working.
http://wewfed2000.hypermart.net/index.shtml
Any help would be greatly appreciated.
hmobron
07-27-2002, 10:04 AM
The titel (second part off the window.open) contains invallid caracters. remove it and the window will open.
asguy
07-27-2002, 02:04 PM
doesn't seem to of worked. i've probably done it wrong or something
Cloudski
07-27-2002, 02:28 PM
Hmm, try changing the " to ' for the window.open
xtpop = window.open('http://clickit.go2net.com/adclick?cid=238003&area=hm.dir.rec.wrestling&site=hm&shape=exitpopup&keyword=exitpopup','xtpop','width=720,height=320,toolbar,scrollbars,menubar,resizable,top=100,left=1 00');
If that doesn't work, then I think you may have a problem with your Cookie declaration right above it...
hmobron
07-27-2002, 05:54 PM
Hello there,
here is what i mean:
function comedy(){
var popurl="comedy.htm"
winpops=window.open(popurl,"","width=600,height=400,scrollbars,")
}
the part where you entered the url, is the name off the window. The same as you entered before (winpops)
I asume you whant the url in the titelbar off the new window. You can do that in de document off the page you opened or afther winpops by winpos.document.titel "http://wewfed2000.hypermart.net/comedy.htm"
Greetings Hans
WebKunstler
07-28-2002, 03:56 PM
I had to do a page similar to what you've got, only I was using an image map. I'd found some code on a site that i thought was well-designed and copied it--then tried to adapt it to my site for a client. The thing that hung me up was that I needed a "return false" to keep it from opening in the same window in order to "pop-up".
Take a look at the zipped attachments:the file "corbispu.txt" was the code i copied, and "adapcode.txt" is how I adapted it to my client's site ---maybe they'll help get your popups working right.
adios
07-29-2002, 03:22 AM
What's with this?
function open () {return true;}
You just over-wrote window.open().
Also - your links don't have closing (</a>) tags. And a bunch of other stuff, but start with the above.