RE: [PHP] Re: Script like this for PHP
| From: | Dan McCullough | Date: | Wed, 12 Dec 2001 21:08:54 +0000 |
| Subject: | RE: [PHP] Re: Script like this for PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77495@lists.php.net to get a copy of this message | ||
Heres a function I wrote some time back for an ecommerce site, works on the same principle.
<SCRIPT LANGUAGE="javascript">
<!--
function ghShow(){
if (document.all){
// IE browser detected
document.all.gh.style.visibility = "visible";
}
else if (document.layers) {
// Netscape browser detected
document.gh.visibility = "visible";
}
}
//-->
</SCRIPT>
then on the link.
<A HREF="#ghSpot" onClick="ghShow()">
hope this helps
dan
--- "Boget, Chris" <chris@wild.net> wrote:
> > The "pop outs" are done using JavaScript. Its something to do
> > with setting the STYLE="visibility: hidden" property of the HTML
> > element. I'm not sure exactly how its done though.
>
> Yeah, and it only works on IE (and maybe NN6+). It won't work
> (the same way) on NN <6.
>
> Chris
>
=====
dan mccullough
--------------------------------------------------------
"Theres no such thing as a problem unless the servers are on fire!"
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com