CyberScout
11-27-2002, 03:04 PM
Ok, this should be pretty straight foward.
Basically, I have a server-side-include on my pages that houses the left side navigation. What I am trying to do is say.
If the URL is "http://blah.stm" then make
img src="duh.gif" (img src=duh2.gif)
The general idea is making an image change depending on what the url is.
Here is what I have so far, and this could VERY far off, but I did try.
<script language="JavaScript" type="text/JavaScript">
<!--
if (document.url = nav_ocs.stm') {
src='../includes/Lnav_ocs/Nav_Contact.gif' ('../includes/Lnav_ocs/Nav_Contact2.gif');
}
//-->
</script>
Thanks in advance
CyberScout
Basically, I have a server-side-include on my pages that houses the left side navigation. What I am trying to do is say.
If the URL is "http://blah.stm" then make
img src="duh.gif" (img src=duh2.gif)
The general idea is making an image change depending on what the url is.
Here is what I have so far, and this could VERY far off, but I did try.
<script language="JavaScript" type="text/JavaScript">
<!--
if (document.url = nav_ocs.stm') {
src='../includes/Lnav_ocs/Nav_Contact.gif' ('../includes/Lnav_ocs/Nav_Contact2.gif');
}
//-->
</script>
Thanks in advance
CyberScout