Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-24-2005, 01:50 PM   #1 (permalink)
rivers9
Registered User
 
Join Date: Aug 2005
Posts: 3
rivers9 is on a distinguished road
hide target link

I want to put a link on Page A that will redirect people to Page C, but through Page B. Page B is just a tracking site that automatically redirects to another site, so I want Page C to be what is displayed when you mouse over the link. Is there a way to do this?

Link on Page A:
<a href="Page B" target="_blank">Link name</a>

How can I make Page C be seen on mouse over, or at least hide Page B from being displayed?
rivers9 is offline   Reply With Quote
Old 08-24-2005, 03:41 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
question: what exactly do you mean by tracking? how are you tracking it? does your server have php?
__________________
Mike
sde is offline   Reply With Quote
Old 08-24-2005, 10:06 PM   #3 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
You'll need to use either server extensions for your web server or a server side scripting language. If you wanted it to be purely through html, you could put a "<meta refresh" directive but it would make your pages seem very sluggish and would display the url of page B.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 08-25-2005, 01:14 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,695
redhead is on a distinguished road
My guess of what he is saying is something like this:
Code:
<a href="page_b?refresh_url=www.my_url.com" onMouseOver="window.status='www.my_url.com';" onMouseOut=window.status='';" target="_blank">Link name</a>
In order to have a tracking page, you will need some form of active server pages, that beeing ASP/PHP/CGI whatever..
I think he wan'ts to fool people visiting his site, so they won't see that he is actualy routing their request through a third party, where he recieves $$ for click-throughs.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-25-2005, 07:39 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
it could be a number of things which is why i ask what 'tracking' means. he could be just trying to track click throughs so he can know for himself if he's getting click throughs and not just rely on the companies that are supposed to be paying him.

or, if he had his own banner ad system where he wants to charge advertisers based on click throughs ..

or what red says ..

even with a meta refresh with a value of zero, you will see a quick flash of the page. if there is 'tracking' involved though, there must be some server-side technology happening.

and if there is server-side technology happening, then the best way is probably to do a header re-direct so the user does not see that they are being sent through a middle page.

i.e.
HTML Code:
<a href="redirect.php?adid=2">text or image here</a>
and if it were php on the receiving end:
PHP Code:
<?
// logic to 'track' adid 2 goes here
header("location: http://final_address.com/");
?>
then again, he posted in the html forum so who knows. there are too many questions to give a good answer.

if there is no server-side stuff and if it was me, i would use a javascript re-direct rather than a meta refresh since it is quicker. something like
HTML Code:
<script language="javascript" type="text/javascript">
window.location = "http://somesite.com";
</script>
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2005, 09:21 AM   #6 (permalink)
rivers9
Registered User
 
Join Date: Aug 2005
Posts: 3
rivers9 is on a distinguished road
It's not a pay thing...Page B is just a site that tracks what AIM screen names click on the link. Page A therefore is your AIM profile - the site documents what screen name clicked on the link then redirects you to whatever page you want it to.

I tried doing something like this but it didn't work, it still shows Page B on mouse over...

HTML Code:
<a href="Page B" target="_blank" onmouseover="window.status='page C';">Link name</a>
I'm not that familiar with PHP or javascript or really even HTML for that matter...but something simple like that would be best if it could be accomplished.

SDE the header redirect thing might work too...can you write it out using my "Page B" and "Page C" links? Please explain to me like I'm an idiot

Last edited by rivers9; 08-25-2005 at 09:21 AM. Reason: .
rivers9 is offline   Reply With Quote
Old 08-25-2005, 09:49 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
first, now i have a better idea, .. php header redirect is not the answer.

now, a couple things wrong here. first, are you using Firefox?

Firefox has a 'safety' feature on by default which prevents the status parameter from being changed. To verify this, you can to go [b]tools->options->web features->advanced->(check the change status bar text field)

Now, if your code works, then it will.

second, for me, i need to add a 'return true;' after setting windows.status for firefox.
HTML Code:
<a href="Page B" onMouseOver="window.status='Page C';return true;" onMouseOut=window.status='';return true;" target="_blank">Link name</a>
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2005, 11:51 AM   #8 (permalink)
rivers9
Registered User
 
Join Date: Aug 2005
Posts: 3
rivers9 is on a distinguished road
I don't use Firefox, just basic IE.

It's still not working...
rivers9 is offline   Reply With Quote
Old 08-25-2005, 12:05 PM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
i would bet that it is prevented for security reasons in the latest patches of IE as well. i think you're out of luck.

try to google: IE windows.status doesn't work

or something like that.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide link frozenazu MS Technologies ( ASP, VB, C#, .NET ) 1 03-18-2005 12:40 PM
copy a directory link with -Rs sde Linux / BSD / OS X 3 02-15-2005 05:34 PM
Post Hide Link jdm PHP 10 02-12-2005 07:05 AM


All times are GMT -8. The time now is 08:07 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting