Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Hiding the destination url, when using href in PHP?
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



Report this thread to moderator Post Follow-up to this message
Old Post
Mark
10-13-04 08:56 PM


Re: Hiding the destination url, when using href in PHP?
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




Report this thread to moderator Post Follow-up to this message
Old Post
Janwillem Borleffs
10-13-04 08:56 PM


Re: Hiding the destination url, when using href in PHP?
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Mark
10-15-04 01:55 PM


Re: Hiding the destination url, when using href in PHP?
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


Report this thread to moderator Post Follow-up to this message
Old Post
Ron
10-17-04 08:55 PM


Re: Hiding the destination url, when using href in PHP?
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




Report this thread to moderator Post Follow-up to this message
Old Post
Janwillem Borleffs
10-18-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:57 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.