View Full Version : Including area of style sheet
Kevlar
07-24-2002, 01:21 AM
I want to include a number of script srcs on every single page. I have a fairly large number of pages and don't want to add the <script src> every time I add a new script. How do I edit a stylesheet which is linked to from every page (link rel) to include a number of tags and their attributes on every page?
helpplease
07-24-2002, 02:01 AM
Hi Kevlar,
You replied to a question I had yesterday about the clear button on forms ("can you clear a section of a form?")... I didn't think that you would look at a new message in my old question, so I thought, if you had a second, you could answer an additional question I have:
How would I clear a checkbox or a radio button? The ' ' that you had in your code seems to only work for text fields.
Thanks. And sorry again to bug you on your posted question.
Kevlar
07-24-2002, 06:44 AM
Originally posted by helpplease
Hi Kevlar,
You replied to a question I had yesterday about the clear button on forms ("can you clear a section of a form?")... I didn't think that you would look at a new message in my old question, so I thought, if you had a second, you could answer an additional question I have:
How would I clear a checkbox or a radio button? The ' ' that you had in your code seems to only work for text fields.
Thanks. And sorry again to bug you on your posted question.
<form name="form11">
<input type="radio" name="n0" value="Something you DONT want to clear" checked> <p>
<input type="radio" name="n1" value="Something you DONT want to clear" checked><p>
<input type="checkbox" name="n2" value="Something you DONT want to clear" checked><p>
<input type="checkbox" name="n3" value="Something you DONT want to clear" checked><p>
<input type="checkbox" name="n4" value="Something you DONT want to clear" checked><p>
<hr>
<input type="radio" name="y1" value="h" checked> <p>
<input type="radio" name="y2" value="Something you want to clear" checked ><p>
<input type="checkbox" name="y3" value="Something you want to clear" checked><p>
<input type="checkbox" name="y4" value="Something you want to clear" checked><p>
<input type="checkbox" name="y5" value="Something you want to clear" checked><p>
<p><p><p><input type="button" value="clear" onClick="document.form11.y1.checked=0;document.form11.y2.checked=0;document.form11.y3.checked=0;document.form 11.y4.checked=0;document.form11.y5.checked=0; ">
</form>
For clearing checkboxes and radio elements.
Sk8er9547
07-24-2002, 06:55 AM
What do you mean by this? If you are talking about having "universal" code in your CSS file, so you dont have to have class="text1" or whatever for everything, just take out the "." before a tag.
Example of your CSS file:
TABLE { border:1px; }
TD { background: 000000; width: 50; }
.text1 { font-weight: bold; }
If you do not use a "." in your CSS file to define a tag, any time you use the same tag in your webpage, it will use those definitions.
webmarkart
07-24-2002, 07:15 AM
I don't know if your using a server side language, but with asp, for example, you can put all of your scripts into an include file. Then all you would have to do is add
<!--#include file="yourscripts.inc"-->
to each page. Once you do that you can just change the include file and it will be reflected on all of your pages.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.