AKB Forums

Go Back   AKB Forums > Technical sections > Algorithms
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Algorithms The source of algorithms for your project

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Mar 6, 2002, 15:41   #1
Младенец
 
Join Date: Mar 2002
Location: moon
Posts: 29
Rep Power: 0
Reputation: 10
Post top.location.replace - ?

Vot kusok java script-a kotory xochu ispol'zovat' dlya togo chtob opredelit' esli stranica prosmatrivaetsya v frame-e na chuzhem hoste ili net, i sootveststvenno pereyti na moy URL ili net.
No etot script ne rabotaet normal'no... v chem oshibka? ili est' sposob luchshe?

if (parent.location.hostname!="www.aaa.com") {top.location.replace="http://www.aaa.com"};

spasibo
lu
louie is offline   Reply With Quote Quote selected
Old Mar 6, 2002, 16:33   #2
»
 
z0mbie's Avatar
 
Join Date: Jan 2002
Posts: 776
Rep Power: 7
Reputation: 10
Send a message via ICQ to z0mbie
Post

<blockquote><font size="1" face="MS Sans Serif, Verdana, Helvetica, sans-serif">quote:</font><hr>Originally posted by louie:
Vot kusok java script-a kotory xochu ispol'zovat' dlya togo chtob opredelit' esli stranica prosmatrivaetsya v frame-e na chuzhem hoste ili net, i sootveststvenno pereyti na moy URL ili net.
No etot script ne rabotaet normal'no... v chem oshibka? ili est' sposob luchshe?

if (parent.location.hostname!="www.aaa.com") {top.location.replace="http://www.aaa.com"};

spasibo
lu
<hr></blockquote>

tak po moemu luchshe:

if (self.parent.frames.length != 0) self.parent.location=document.location;
z0mbie is offline   Reply With Quote Quote selected
Old Mar 7, 2002, 17:06   #3
Младенец
 
Join Date: Mar 2002
Location: moon
Posts: 29
Rep Power: 0
Reputation: 10
Talking

2 zOmbie:

Spasibo, mne prosto len' smotrt' JS documentaciu po kazhdomu povodu... vot v chem bila problema <img src="biggrin2.gif" border="0"> - delo v sitaksise : location.replace("http://www.aaa.com") <img src="wink-5.gif" border="0">

Spasibo za pomosh'

<img src="graemlins/nod.gif" border="0" alt="[Agree]" />

lu
louie is offline   Reply With Quote Quote selected
Old Mar 7, 2002, 19:56   #4
Консервативный Демагог
 
VX's Avatar
 
Join Date: Jan 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 7
Reputation: 10
Post

Ya bi skazal parent.location.replace
__________________
Праздник к нам приходит...

|^^^^^^^^^'''^\| ||\__
| ВОДКА-ВОДКА | ||','''|'''''''\_____,_
| _..... _ | ||_ _|'__|_____||.........| |
'(@)'(@)'(@)''''''''''''''''''''''*|(@)""""|(@)*
VX is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:36.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link