akalsha
09-08-2002, 02:45 PM
Hi all.
I have a simple javascript that goes in the head of an HTML document that looks like this:
<script language="JavaScript">
if (parent.location.href == self.location.href){
window.location.href = '/pink/ndmain.html'
}
</script>
I want to put this on all the pages of my web site. I currently have an externally linked .css document on all my pages:
<style type="text/css">
<!--
BODY {
background-attachment: fixed; background-image: url(/st/pagebackgrounds.jpg);
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #FFF48F;
scrollbar-highlight-color: #A6B6FF;
scrollbar-3dlight-color: #A6B6FF;
scrollbar-darkshadow-color: #FFF48F;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #A6B6FF
}
-->
I would like to know if it is possible to add the script to the css document? Basically I'm trying to avoid going in and adding the script to all the pages.
I have a simple javascript that goes in the head of an HTML document that looks like this:
<script language="JavaScript">
if (parent.location.href == self.location.href){
window.location.href = '/pink/ndmain.html'
}
</script>
I want to put this on all the pages of my web site. I currently have an externally linked .css document on all my pages:
<style type="text/css">
<!--
BODY {
background-attachment: fixed; background-image: url(/st/pagebackgrounds.jpg);
scrollbar-face-color: #ffffff;
scrollbar-shadow-color: #FFF48F;
scrollbar-highlight-color: #A6B6FF;
scrollbar-3dlight-color: #A6B6FF;
scrollbar-darkshadow-color: #FFF48F;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #A6B6FF
}
-->
I would like to know if it is possible to add the script to the css document? Basically I'm trying to avoid going in and adding the script to all the pages.