Buy Shares | Homeowner Loans | Cell Phones | Secured Loans | Venta de libro
code to auto forward and mask url please [Archive] - ZGeek

PDA

View Full Version : code to auto forward and mask url please


dozer
10-04-2005, 09:59 AM
i need some code to put in an index.html file that will automatically forward to another url and then mask the forwarded url (stays same as original).

i could probably google it but im lazy, anyone help a guy out?

im just a poor drunken saturday night part time programmer.

Pirate
10-04-2005, 10:04 AM
I know you can do meta tags to forward the person to another site (http://webdesign.about.com/cs/metatags/a/aa080300a.htm) but im not sure how to hide this.

druid
10-04-2005, 10:21 AM
Meta refresh in a frame? It's all I can think of now.

dozer
10-04-2005, 11:54 AM
thanks for the help, anyone know the code to set 1 url and not change?

also the chrto rem out php please

Reprobate
18-04-2005, 04:20 AM
Meta refresh in a frame? It's all I can think of now.

I concur with Druid.

A frame will do it. And a bit of magic in the metatags.

Though how's this for interesting: http://www.zgeek.com.1bu.com

evil
18-04-2005, 06:54 AM
Frames would work, but so would an iFrame. In the <body> of your html doc try something like this:

< html>
< body>
< iframe src="http://site.you.want.to.load"
width="100%" height="100%" scrolling="yes" name="content" frameborder="0" >
< /iframe>
< /body>
< /html>

(spaces put in to avoid them being interpreted ;)

You may have some problems with scrolling if the site you're forwarding to is over longer than a single screen.

cyberwired
29-04-2005, 07:35 PM
one frame in the window that fills the space and its set so it goes right to the edges and holds the location inside it