|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
Hiding the url magic
I came across a website that had links to other websites, but if you clicked on them, the url of the orginal website showed only in the address bar. Viewing the source code showed this:
Code:
<HTML><HEAD> <META NAME="description" content=""> <META NAME="keywords" content=""> <TITLE>www.MyNightOff.com</TITLE> </HEAD> <FRAMESET ROWS="100%,*" BORDER="0" FRAMEBORDER="0"> <FRAME SRC="http://www.planpot.net/mynightoff/" SCROLLING="AUTO" NAME="bannerframe" NORESIZE> </FRAMESET> <NOFRAMES> www.MyNightOff.com <P> <DIV ALIGN="CENTER"><A HREF="http://www.planpot.net/mynightoff/">http://mynightoff.com/</A></DIV> </NOFRAMES> </HTML> Would the url switch happen to be something do with the HREF="http: line? They display the webpage in a frame which would disguise the url anyway. Would anyone know exactly what is happening? |
|
#2
|
||||
|
||||
|
The status bar usually shows the value of the HREF
Some sites use frames so the URL in the address bar remains the same and short... I've never known a user to leave a page because the address was too long, but maybe I'm not looking at the right research =) When a site with frames links to another site, by default the page opens in the current frame. The ethical thing to do when using frames is to use target="_top" when you link to an external page.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#3
|
||||
|
||||
|
On a similar note.....
Another website does this when placing a link to another website. This code I believe, opens up an asp page on their site and calls the external link to be viewed within their page, thus getting the hits registered to them, not to the external website. This is the code of the link:
Code:
http://www.awebsite.com/extern.aspx?src=http://www.anotherwebsite.com Can I do this in php? Like the use of include $src ; which will open up the variable of value http://www.anotherwebsite.com? Thanks! |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Hiding the url magic |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|