Page 1 of 1

God i'm stupid...

Posted: Sun Nov 07, 2004 6:15 pm
by Daisy Cutter
i want to do something SO simple yet i just can't figure it out! :oops:

Code: Select all

<p class="center" id="lurking">
<strong><a href="/url/contact.php&show=lurking">other places i lurk</a></strong>
<br />
<span class="hidden">
...
</span>
I want to make it so that if the current page is index.php?url=contact.php&show=lurking, the class="hidden" on the span is not shown.

it's beacuse the CSS i use to show the hidden span on hover doesn't work in IE.

Posted: Sun Nov 07, 2004 6:27 pm
by nigma

Code: Select all

$hidden = (($_GET['url']=="contact.php") && ($_GET['show']=="lurking")) ? "" : " class="hidden"" ;

echo "<span$hidden>";

Posted: Sun Nov 07, 2004 6:37 pm
by Daisy Cutter
that just makes an error:
Parse error: parse error, unexpected ':' in /home3/mcovey/public_html/contact.php on line 18

Posted: Sun Nov 07, 2004 6:56 pm
by nigma
I edited my post to correct my error. Sorry.

Posted: Sun Nov 07, 2004 7:50 pm
by Daisy Cutter
thanks.