Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not allow user to see the link is from another site.

Status
Not open for further replies.

loner

IS-IT--Management
Jul 2, 2003
6
US
I have somewhat a newbie question. I'm not a web developer, I'm a database administrator. I'm creating this webpage, and I have links to our other website. What I want to do is make it so when they click on the link, they don't see that it's coming from a different website, I want to make it appear like it's all within the website. The reason I don't want to create new pages for the links is because we often update those links in the other website, and it would be tedius to have to update both websites every time.

I think that I can do this with frames, but I don't want to put frames on the website. Are there any other ways? Any help is greatly appreciated.

-Loan

 
Beware you can be treading on very dodgy ground here. Normally if you display pages from another website you should open them in a new browser window. Displaying them in a frame on your own site can be construed as copyright theft and or bandwidth theft. Imagine you pay for web hosting with limited bandwidth but adequate for the needs of your site and then all of a sudden you get a hit rate similar to amazon.com and a massive web hosting bill because someone else is passing of your site as part of their own.

Regards
Ian

Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Hi Ian, I know about this, and I wouldn't use another website in this way if our company didn't own both websites.

But, thanks for advice :)

-Loan
 
That's an easy one loner.

Add this element to your link:

onMouseOver="window.status='Insert Alternate Message Here'; return true"

Replace "Insert Alternate Message Here" with whatever you want the user to see (instead of seeing the URL). For example "New Products".

Make sure everything else is exactly as above. Much of it is case sensitive and the quotes have to be exactly like that.

Your links will then look like this:

<a href=&quot;newproducts.html&quot; onMouseOver=&quot;window.status='New Products'; return true&quot;>New Products</a>
 
that doesn't prevent the URL from being shown in the address bar.
 
WizyWyg

Good point. But how would you get rid of that?

At least with this when they hover over the link the URL won't show at the bottom of the screen. Hopefully the other page looks close enough the same that they won't even realize they are in a different site. Of course he also has the problem of providing links back without the use realizing they are changing sites.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top