Include Tags

liunx

Guest
Hello, here's my problem... i have done up my site with include tags (i found them to be the best tool out there) and i ran into a road block... I have created this script below which displays images at certain times... now the images are gif's and i want to change them to another include tag... can you have a file that's reading an include tag from an html file that has more include tags? or maybe my script will have to be edited a bit... any suggestions..:<br />
<br />
<br />
<!--webbot bot="Include" U-Include="content/on_air/current_on_air.htm" TAG="BODY" startspan --> <br />
<br />
<p align="right"> <br />
<script LANGUAGE="JavaScript"> <br />
var now = new Date(); <br />
var day = now.getDay(); <br />
var hours = now.getHours(); <br />
<br />
if (day == 0) <br />
<br />
if (hours < 9) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_overnight.gif'>"); <br />
else if <br />
(hours < 15) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_crash.gif'>"); <br />
else if <br />
(hours < 21) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_doug.gif'>"); <br />
else <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_overnight.gif'>"); <br />
<br />
else if (day == 6) <br />
<br />
if (hours < 9) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_overnight.gif'>"); <br />
else if <br />
(hours < 15) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_doug.gif'>"); <br />
else if <br />
(hours < 21) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_crash.gif'>"); <br />
else <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_overnight.gif'>"); <br />
<br />
else <br />
<br />
if (hours < 6) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_overnight.gif'>"); <br />
else if <br />
(hours < 10) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_brian.gif'>"); <br />
else if <br />
(hours < 15) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_gen.gif'>"); <br />
else if <br />
(hours < 19) <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_buzz.gif'>"); <br />
else <br />
document.write("<IMG SRC='http://www.webdeveloper.com/forum/archive/index.php/onairpics/on_air_steve.gif'>"); <br />
<br />
</script> <br />
</p> <br />
<br />
<br />
<br />
and here's what i want to replace the "<img src=http://www.webdeveloper.com/forum/archive/index.php/..." with <br />
<br />
<!--webbot bot="Include" U-Include="on_air_images/CRASH/on_air_red.html " TAG="BODY" startspan --><br />
<br />
when i put it in there it causes an error and doesnt load... I hope you can help!<br />
<br />
Crash<!--content-->i m not sure but you can try as beloww<br />
<br />
Please use microsoft frontpage 2000 or xp or 2003 and then ope your project in front page and then go to their coding view<br />
<br />
<br />
then go for the find >> then find " .gif " and then replace that whatever you want ( e.g ".jpg") and replace it and save it and you will sure that solve your problem still you have then contect me or give reply .<!--content-->
 
Back
Top