correct syntax

liunx

Guest
What is correct syntax to hide all <a href=http://www.webdeveloper.com/forum/archive/index.php/...</a> besides few ones which will have an ID?
Also, is there the same way to block javascript like <script type="text/javascript> besides ones which will have an ID?For the css I guess you have a couple of choices :
a {display:none} (if you want them gone completely) or
a {visibility:hidden} (if you want them to be invisible but still there i.e. the space they should occupy is still there (if that makes sense)).

For the javascript... I'm a little confused to be honest. What kind of javascript is it? (What's the function?)a[id] {display:none}could you be more specific: how code should look to block a <href,
except for ones which have an ID?


Also, how to block bar like this:

<DIV style="BORDER-RIGHT: #000000 1px solid; PADDING-RIGHT: 4px; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 13px; BACKGROUND: #dddddd; FILTER: progid DXImageTransform.Microsoft.Gradient (GradientType=0, StartColorStr='#EEEEEE', EndColorStr='#AAAAAA'); PADDING-BOTTOM: 4px; MARGIN: 0px; WIDTH: 100%; COLOR: #000000; PADDING-TOP: 4px; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: arial,sans-serif; WHITE-SPACE: nowrap; HEIGHT: 25px">
<STYLE>.fplink {
TEXT-DECORATION: none
}
.fplink:hover {
TEXT-DECORATION: underline
}
</STYLE

As to javascript- just to block all javascript whatever they do.


<script type="text/javascript"
src=http://www.webdeveloper.com/forum/archive/index.php/"http://host.com/page/shows.js">
</script><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Example</title>

<style type="text/css">
<!--
a[id] {display:none}
-->
</style>

</head>
<body>
<ul>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"fee.html">Fee</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"fie.html">Fie</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"foe.html">Foe</a></li>
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"fum.html" id="fum">Fum</a></li>
</body>
</html>

That's the correct syntax. That some unfortunate browsers do not support it is not my fault.But how set ID to <a href ones which must be displayed?
 
Back
Top