For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > October 2004 > Hiding the destination url, when using href in PHP?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Hiding the destination url, when using href in PHP?
Mark

2004-10-13, 3:56 pm

Hi,

I have the following line in my PHP file.

echo"<a class='menu' href='http://www.royallays.co.uk' target='_top'>Royal
Lays</a>";

How can I change it, so that instead of displaying the web url in Internet
Explorers status bar (bottom left), it displays something more meaningful
like "Royal Lays (UK SITE)"?


Thanks, Mark


Janwillem Borleffs

2004-10-13, 3:56 pm

Mark wrote:
> I have the following line in my PHP file.
>
> echo"<a class='menu' href='http://www.royallays.co.uk'
> target='_top'>Royal Lays</a>";
>
> How can I change it, so that instead of displaying the web url in
> Internet Explorers status bar (bottom left), it displays something
> more meaningful like "Royal Lays (UK SITE)"?
>
>


By using a small bit of java script:

echo "<a class='menu' href='http://www.royallays.co.uk'
onmouseover='status=\"Royal Lays (UK SITE)\"; return true'
onmouseout='status=\"\"; return true'
target='_top'>Royal Lays</a>";


JW



Mark

2004-10-15, 8:55 am

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:416d84d8$0$46396$cd19a363@news.euronet.nl...
> Mark wrote:
>
> By using a small bit of java script:
>
> echo "<a class='menu' href='http://www.royallays.co.uk'
> onmouseover='status=\"Royal Lays (UK SITE)\"; return true'
> onmouseout='status=\"\"; return true'
> target='_top'>Royal Lays</a>";
>
>
> JW
>




That works a treat - thanks very much :-)


Thanks, Mark


Ron

2004-10-17, 3:55 pm

What about Mozilla, and Netscape Browsers it seems to ignore the
status completely when using this example?

> Mark wrote:
>
> By using a small bit of java script:
>
> echo "<a class='menu' href='http://www.royallays.co.uk'
> onmouseover='status=\"Royal Lays (UK SITE)\"; return true'
> onmouseout='status=\"\"; return true'
> target='_top'>Royal Lays</a>";
>
>
> JW


Janwillem Borleffs

2004-10-17, 8:55 pm

Ron wrote:
> What about Mozilla, and Netscape Browsers it seems to ignore the
> status completely when using this example?
>


IE understands that with 'status', 'window.status' is implied. Gecko engine
based browsers do not, so 'window.status' should be used instead.


JW



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com