Forum Moderators: not2easy
However, I can't work out how to hide the adverts, as I haven't put these in their own divs. Instead they are inserted using Frontpage includes, which means the code looks like this:
<!--webbot bot="Include" U-Include="adverts.htm" TAG="BODY" -->
Is there any way to apply display:none to webbots or includes alone? Or will I need to go through and put the webbots into their own separate div, and then hide the div?
Thanks very much for any ideas.
<div id="myinclude"><!--webbot bot="Include" U-Include="adverts.htm" TAG="BODY" --></div>
#myinclude {display: none;}
or
#myinclude iframe {display: none;}
where you could change 'iframe' to whatever element the ads script generates if you want to get more choosy over what you hide
script{
display: none;
}
CSS is for styling visible elements, <script> is NOT a visible element, there's no way you could affect it like this. The only thing you could do is write styles for the elements the script produces, but that would be far harder than just hiding the whole lot in a div.