|
|
|
|
|
|
|
![]() |
#1 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
![]() Anyone know how I can do this without using javascript?
Code:
<a href="bondage-movies/bdsm-videos-0002.shtml" onclick="window.open(this.href, 'mywin', 'width=600,height=400,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no, resizable=yes'); return false;"> The reason being that I need to check any clicks on the new window for the ability to carry a referrer, and there is a bug in all versions of IE from 98 onwards (Microsoft claim it is a "feature" everyone else calls it a "bug") that means you always get "no referrer" from a javascript generated window. |
![]() |
![]() |
![]() |
#2 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
I tried doing it in Namo (see the option before, but never played around with it) and it gave me this:
Code:
<a href="javascript:na_open_window('win', 'http://www.link-o-rama.com/', 0, 0, 300, 200, 0, 0, 0, 0, 0)" target="_self">Testing 1 2 3</a> ![]() If you need to know what each number does, LMK & I'll post a list. OR Just tell me how you asked about doing this without using javascript & I'll shut up ![]() |
![]() |
![]() |
![]() |
#3 |
Lonewolf Internet Sales
|
Code:
<a href="bondage-movies/bdsm-videos-0002.shtml" target="_blank"> |
![]() |
![]() |
![]() |
#4 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Thanks for your help.
GreenGuy - I can't get this to work, no idea why because it should work. Toby - I was afraid of that, it means "back to the drawing board" for my tube site. Fuck it! |
![]() |
![]() |
![]() |
#5 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
You mean you can't get the code I posted to work?
|
![]() |
![]() |
![]() |
#6 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
|
![]() |
![]() |
![]() |
#7 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
After I put this little page together, I noticed that Namo threw some java code up in the <head>
Code:
<script language="JavaScript"> <!-- function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) { toolbar_str = toolbar ? 'yes' : 'no'; menubar_str = menubar ? 'yes' : 'no'; statusbar_str = statusbar ? 'yes' : 'no'; scrollbar_str = scrollbar ? 'yes' : 'no'; resizable_str = resizable ? 'yes' : 'no'; window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str); } // --> </script> ![]() |
![]() |
![]() |
![]() |
#8 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Thanks. That works. Unfortunately IE still sees it as a security risk and refuses to carry referrer details out of the produced page.
I'm guess I'll have to go without using a "video window" and just go with "target=_blank", which will not look as good. But thanks for your help, both of you. |
![]() |
![]() |
![]() |
#9 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
Maybe if you upgraded your browser...
![]() |
![]() |
![]() |
![]() |
#10 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
The problem exists in all IE versions from W98 up to W8, and it is believed that the problem will exist in W10 when it comes out too (it has existed for 17 years in God knows how many updates of IE). It is caused (I'm told) by the fact that interpreting javascript is an "add on" for IE, and they never bothered to make it secure, so deliberately limit what it can do if you surf using any version of IE.
|
![]() |
![]() |
![]() |
#11 |
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
|
I did not know that - and I just now verified it by testing it with my handy IE Tab Chrome Extension
![]() BUT...in theory, if you can't find a way to have it work in IE (other than it just popping a new window) you could still use it for those with FireFox & Chrome so that at least some of your visitors see it that way you want it ![]() |
![]() |
![]() |
![]() |
#12 |
Banned
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
|
Won't work unfortunately. The problem is I need to know if the surfer is a non-referrer type surfer so that I can do evil things to them if they don't click where I want them to click. With a javascript window, all IE traffic (over 50% of it) will be wasted as my script will assume them to be no referrer types.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|