|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello. I'm not sure if this is a good place to ask this question, but here it goes. I was checking my referrer stats for one of my sites 1121.com and clicked on one of the links to see who was linking to me. What I found has me a little puzzled. If you go to http://www3079.kaao.com/ you will see that it is a single frame that calls up http://1121.com inside it. There is no other content on the page and viewing the source code of the page doesn't help much because it's not in English. I have no idea why someone would do that. Any ideas? I checked whois for kaao.com and found it's in China, but that doesn't give me a reason.
I also have a few other sites in China that link to me for some strange reason. Brooks Ayola http://ayola.com |
|
|||
|
Hi Brooks,
Well, there are several reasons why a site frames another website, however I have no clue as to the intentions of this site in China. The following code should help, add it to your body tag: Code:
<body onLoad="if (self != top) top.location = self.location"> |
|
||||
|
Agreed with cyanide.. who knows what the intentions of these Chinese sites are? Any suggestion offered here would be pure speculation. The following article discusses some of the legal aspects... bear in mind this is dated April, 2000. Web Site Framing: Trademark and Copyright Issues
GMD Studios offer a similar script to cyanide's suggestion, with slight improvements i.e. they specify the correct 'home' location. Code:
<SCRIPT Language="JavaScript" type="text/javascript"> <!-- // FRAME THIS! (Annotated Version 1.7) // script home location http://www.gmdstudios.com/ideas/frames/ // Authors: GMD Studios (Andrew Cowan & Brian Clark) // Contact: inquiries@gmdstudios.com // // This script is copyright 1997-8 by GMD Studios. Permission to // use, modify, and distribute this is granted as long as authors' // copyright statements are left intact. All other use prohibited. // VARIABLE ASSIGNMENT // Set real_location to the URL of your website. var real_location = "http://www.gmdstudios.com/ideas/frames/"; function framethis () { // FIRST LOOP - Browsers that support top.location if (top.location) { if (self != top) top.location = self.location; } else { // SECOND LOOP - Browsers that don't support top.location if (parent.location) { if (parent.location != real_location) parent.location = real_location; } } } //--> </SCRIPT> <BODY onLoad="framethis()"> |
|
|||
|
I knew you guys would come through with a little prodding! Anyway, I tried the simple solution first to see how it worked and it did. Is there good reason to use the script instead, if it seems that the first solution did the trick?
Brooks Ayola http://ayola.com/blog |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |