Any web desing guys here? Need frame jammer

Come in! Have a margarita or root beer? How about some fresh trout? :)

Moderator: Moderators

Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Any web desing guys here? Need frame jammer

Post by Mavicator »

Anyone know a good script to jam a frame? I want to be able to give a link to someone and have that page open in it's parent frameset. The only one I've found so far doesn't work right. Thanks <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i></i>
sys64738
User avatar
XMEN Gambit
Site Admin
Posts: 4122
Joined: Thu Nov 18, 1999 12:00 am

Re: Any web desing guys here? Need frame jammer

Post by XMEN Gambit »

You don't need a script. <br><br>The HTML < A > tag has several attributes, one of which is called target. The target attribute sets the window or frame in which the link will be opened.<br><br>Have a look at the w3 spec:<br><br>http://www.w3.org/TR/REC-html40/present ... tml#h-16.3 <p><!--EZCODE IMAGE START--><img src="http://www.xmenclan.org/xmengambit.gif"/><!--EZCODE IMAGE END--><br>XMEN member<br>Card-carrying DTM<br>OKL Fish-napper<br><br>Though a program be but three lines long, someday it will have to be maintained.<br><!--EZCODE ITALIC START--><em> The Tao of Programming</em><!--EZCODE ITALIC END--></p><i></i>
Image
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

That just tells the page which frame to open in. I'm talking about giving someone a link such as <!--EZCODE LINK START--><a href="http://www.twosims.com/mainframe.htm">T ... <!--EZCODE LINK END--> and having it automatically reopen itself in the proper frame, which would appear like <!--EZCODE LINK START--><a href="http://www.twosims.com/index2.htm">THIS</a><!--EZCODE LINK END-->. <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i></i>
sys64738
THZGryphon
Inmate
Posts: 359
Joined: Thu Nov 08, 2001 10:23 am

Re: Any web desing guys here? Need frame jammer

Post by THZGryphon »

<!--EZCODE CODE START--><pre> <head><script language="JavaScript"><!-- Beginif (parent.location.href == self.location.href) { window.location.href = 'index2.htm';}// End ---</script></head></pre><!--EZCODE CODE END--> <p><!--EZCODE LINK START--><a href="http://www.thzclan.com/gryphav.gif/sigs.php"><!--EZCODE IMAGE START--><img src="http://www.thzclan.com/gryphav.gif" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--> <!--EZCODE LINK START--><a href="http://www.thzclan.com/cam/index.php?zo ... <!--EZCODE IMAGE START--><img src="http://www.thzclan.com/cam/gryphon/thb_ccam.jpg" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--><!--EZCODE FONT START--><span style="font-size:xx-small;"><br><!--EZCODE LINK START--><a href="http://www.thzclan.com/tcdb">Tribes Clan DB</a><!--EZCODE LINK END--> - List your Tribes1/2 Clan, Guild, Fansite, League, or Script site<br><!--EZCODE LINK START--><a href="http://www.thzclan.com/snooknet">Gryphon, LLC</a><!--EZCODE LINK END--> - My WebDev Adventures<br><!--EZCODE LINK START--><a href="http://www.planettribes.com">PlanetTribes</a><!--EZCODE LINK END--> - Adminstrator<br><!--EZCODE LINK START--><a href="http://www.planetplanetside.com">PlanetSide Shuttle</a><!--EZCODE LINK END--> - Newsie Extraordinaire<br><!--EZCODE LINK START--><a href="http://www.alliedtribalforces.com">Allied Tribal Forces</a><!--EZCODE LINK END--> - A PlanetSide alliance started by Tribesplayers</span><!--EZCODE FONT END--></p><i>Edited by: <A HREF=http://pub141.ezboard.com/bxmenclan.sho ... n</A>&nbsp; <IMG HEIGHT=10 WIDTH=10 SRC="http://www.thzclan.com/images/thz.gif" BORDER=0> at: 2/5/04 10:59 pm<br></i>
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

Pardon my html ignorance but I'll do the best I can here... That script appears to do exactly what I want, but can it be applied to any page in the site regardless of directory structure? <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i></i>
sys64738
THZGryphon
Inmate
Posts: 359
Joined: Thu Nov 08, 2001 10:23 am

Re: Any web desing guys here? Need frame jammer

Post by THZGryphon »

Not really, it will just take them to html2.htm, you would have to create a frameset for each page if you wanted one of the sub pages to be framed. Otherwise toss that on every page and if they are ever opened without the frame it will go to the home page. I can see if I can find a smarter system if you want. <p><!--EZCODE LINK START--><a href="http://www.thzclan.com/gryphav.gif/sigs.php"><!--EZCODE IMAGE START--><img src="http://www.thzclan.com/gryphav.gif" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--> <!--EZCODE LINK START--><a href="http://www.thzclan.com/cam/index.php?zo ... <!--EZCODE IMAGE START--><img src="http://www.thzclan.com/cam/gryphon/thb_ccam.jpg" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--><!--EZCODE FONT START--><span style="font-size:xx-small;"><br><!--EZCODE LINK START--><a href="http://www.thzclan.com/tcdb">Tribes Clan DB</a><!--EZCODE LINK END--> - List your Tribes1/2 Clan, Guild, Fansite, League, or Script site<br><!--EZCODE LINK START--><a href="http://www.thzclan.com/snooknet">Gryphon, LLC</a><!--EZCODE LINK END--> - My WebDev Adventures<br><!--EZCODE LINK START--><a href="http://www.planettribes.com">PlanetTribes</a><!--EZCODE LINK END--> - Adminstrator<br><!--EZCODE LINK START--><a href="http://www.planetplanetside.com">PlanetSide Shuttle</a><!--EZCODE LINK END--> - Newsie Extraordinaire<br><!--EZCODE LINK START--><a href="http://www.alliedtribalforces.com">Allied Tribal Forces</a><!--EZCODE LINK END--> - A PlanetSide alliance started by Tribesplayers</span><!--EZCODE FONT END--></p><i></i>
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

Scripts are not allowed<br><br>EDIT: Oops! <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i>Edited by: <A HREF=http://pub141.ezboard.com/bxmenclan.sho ... r</A>&nbsp; <IMG HEIGHT=10 WIDTH=10 SRC="http://home.pacbell.net/stevesim/mindmunch.gif" BORDER=0> at: 2/6/04 10:55 am<br></i>
sys64738
User avatar
XMEN Gambit
Site Admin
Posts: 4122
Joined: Thu Nov 18, 1999 12:00 am

Re: Any web desing guys here? Need frame jammer

Post by XMEN Gambit »

Ah, ok. Didn't understand.<br><br>One way that might work would be to have the home page, with the frameset, take a parameter on the URL. The parameter would be the name of the actual page you wanted to open in the frame. So your links would look like<br><br>http://www.myhomepage.com?show=weddingp ... br><br>The homepage frameset would open the default page in the frame unless it finds the parameter, in which case it loads that page instead.<br><br>Though you wouldn't want the links actually on the site to look like this or you'd end up getting nested frames. Oh, but you could specify a target=top, or whatever, for them, and it'd work. <p><!--EZCODE IMAGE START--><img src="http://www.xmenclan.org/xmengambit.gif"/><!--EZCODE IMAGE END--><br>XMEN member<br>Card-carrying DTM<br>OKL Fish-napper<br><br>Though a program be but three lines long, someday it will have to be maintained.<br><!--EZCODE ITALIC START--><em> The Tao of Programming</em><!--EZCODE ITALIC END--></p><i></i>
Image
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

That's the problem with the script I have (and tried to post above). I can give someone a link such as www.url.com/page where "page" is not the normal main page. However, when it opens, with "page" in the proper frame, the link looks like what you posted above. I've seen sites in the past which do it properly but I can't figure out how. I think it has to do with putting the script in the page you are linking to. <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i></i>
sys64738
User avatar
XMEN Gambit
Site Admin
Posts: 4122
Joined: Thu Nov 18, 1999 12:00 am

Re: Any web desing guys here? Need frame jammer

Post by XMEN Gambit »

Well, on the page in the target URL of the desired frame, instead of the actual URL, just put the function to retrieve the variable's value, in the scripting language of your choice. I'll give an example when I get home. <p></p><i></i>
Image
THZGryphon
Inmate
Posts: 359
Joined: Thu Nov 08, 2001 10:23 am

Re: Any web desing guys here? Need frame jammer

Post by THZGryphon »

If you want to post a script use the [*code][/code] tags. I could do exactly what you want easily if your site supports php. I don't know too much about javascript, but with php you could easily grab the current url from the page and return people to frames showing the same content. <p><!--EZCODE LINK START--><a href="http://www.thzclan.com/gryphav.gif/sigs.php"><!--EZCODE IMAGE START--><img src="http://www.thzclan.com/gryphav.gif" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--> <!--EZCODE LINK START--><a href="http://www.thzclan.com/cam/index.php?zo ... <!--EZCODE IMAGE START--><img src="http://www.thzclan.com/cam/gryphon/thb_ccam.jpg" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--><!--EZCODE FONT START--><span style="font-size:xx-small;"><br><!--EZCODE LINK START--><a href="http://www.thzclan.com/tcdb">Tribes Clan DB</a><!--EZCODE LINK END--> - List your Tribes1/2 Clan, Guild, Fansite, League, or Script site<br><!--EZCODE LINK START--><a href="http://www.thzclan.com/snooknet">Gryphon, LLC</a><!--EZCODE LINK END--> - My WebDev Adventures<br><!--EZCODE LINK START--><a href="http://www.planettribes.com">PlanetTribes</a><!--EZCODE LINK END--> - Adminstrator<br><!--EZCODE LINK START--><a href="http://www.planetplanetside.com">PlanetSide Shuttle</a><!--EZCODE LINK END--> - Newsie Extraordinaire<br><!--EZCODE LINK START--><a href="http://www.alliedtribalforces.com">Allied Tribal Forces</a><!--EZCODE LINK END--> - A PlanetSide alliance started by Tribesplayers</span><!--EZCODE FONT END--></p><i>Edited by: <A HREF=http://pub141.ezboard.com/bxmenclan.sho ... n</A>&nbsp; <IMG HEIGHT=10 WIDTH=10 SRC="http://www.thzclan.com/images/thz.gif" BORDER=0> at: 2/6/04 11:31 am<br></i>
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

I know nothin gof PHP. I think the server supports it but that's about all I know. Unfortunately I'm a web design wimp. <!--EZCODE EMOTICON START :\ --><img src=http://www.ezboard.com/images/emoticons/ohwell.gif ALT=":\"><!--EZCODE EMOTICON END--> <p><!--EZCODE IMAGE START--><img src="http://www.camerasupport.com/oV/mavsigr ... <!--EZCODE IMAGE END--></p><i></i>
sys64738
THZGryphon
Inmate
Posts: 359
Joined: Thu Nov 08, 2001 10:23 am

Re: Any web desing guys here? Need frame jammer

Post by THZGryphon »

You could keep the same format you use now just plan html, just change the extension to .php it will work the same. The only place you would have a little php code would be in index2.htm(php) and a javascript I could provide you with that you would just include in each page head.<br><br>If someone loaded a page outside the frames, say hobby.htm(php) it will redirect to index2.php?t=hobby.php otherwise all links stay as they are now that would be the only instance where you would notice a url like that. <p><!--EZCODE LINK START--><a href="http://www.thzclan.com/gryphav.gif/sigs.php"><!--EZCODE IMAGE START--><img src="http://www.thzclan.com/gryphav.gif" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--> <!--EZCODE LINK START--><a href="http://www.thzclan.com/cam/index.php?zo ... <!--EZCODE IMAGE START--><img src="http://www.thzclan.com/cam/gryphon/thb_ccam.jpg" style="border:0;"/><!--EZCODE IMAGE END--></a><!--EZCODE LINK END--><!--EZCODE FONT START--><span style="font-size:xx-small;"><br><!--EZCODE LINK START--><a href="http://www.thzclan.com/tcdb">Tribes Clan DB</a><!--EZCODE LINK END--> - List your Tribes1/2 Clan, Guild, Fansite, League, or Script site<br><!--EZCODE LINK START--><a href="http://www.thzclan.com/snooknet">Gryphon, LLC</a><!--EZCODE LINK END--> - My WebDev Adventures<br><!--EZCODE LINK START--><a href="http://www.planettribes.com">PlanetTribes</a><!--EZCODE LINK END--> - Adminstrator<br><!--EZCODE LINK START--><a href="http://www.planetplanetside.com">PlanetSide Shuttle</a><!--EZCODE LINK END--> - Newsie Extraordinaire<br><!--EZCODE LINK START--><a href="http://www.alliedtribalforces.com">Allied Tribal Forces</a><!--EZCODE LINK END--> - A PlanetSide alliance started by Tribesplayers</span><!--EZCODE FONT END--></p><i>Edited by: <A HREF=http://pub141.ezboard.com/bxmenclan.sho ... n</A>&nbsp; <IMG HEIGHT=10 WIDTH=10 SRC="http://www.thzclan.com/images/thz.gif" BORDER=0> at: 2/6/04 12:21 pm<br></i>
LoS Malthus
Posts: 60
Joined: Mon Apr 15, 2002 2:51 pm

Re: Any web desing guys here? Need frame jammer

Post by LoS Malthus »

I'm still confused about what you want to do. <br><br>Are you looking to make sure that regardless of the address a visitor types in they are forced into the framset so that they always get the menus on the side?<br><br>Gryphs php solution is probably the easiest. Or I could write ya some javascript to do it without php once I understand the problem <!--EZCODE EMOTICON START :) --><img src=http://www.ezboard.com/images/emoticons/smile.gif ALT=":)"><!--EZCODE EMOTICON END--> <p><!--EZCODE HR START--><hr /><!--EZCODE HR END--><br>Real Geeks don't make there own backups. They accept it as karma and move on. </p><i></i>
Mavicator
Inmate
Posts: 234
Joined: Sat Nov 09, 2002 3:21 pm
Location: So Cal

Re: Any web desing guys here? Need frame jammer

Post by Mavicator »

If I give someone this link:<br><br><!--EZCODE AUTOLINK START--><a href="http://www.mtwilson.edu/vis/visit.htm"> ... <!--EZCODE AUTOLINK END--><br><br>I want it to open with the parent frameset around it. However, I don't want the address bar to display a big ugly redirected address. I just want it to display a normal url, as if you had navigated to that page from the main page. As you can see, with the current javascript, the address in the address bar is all jacked up. Is there a way to avoid that? <p></p><i></i>
sys64738
Post Reply