scripter73
Programmer
Hi,
I have a .CFM template that was originally handed off to me as a .HTML file, so I could include the ColdFusion functionality.
In the original .HTML file, there were Javascript includes for headers/footers. The shell of the .HTML file looks like the following:
<html>
<head>
<!--#include file=”include/header.html”>
<script language=”Javascript” type=”text/Javascript”>
…..standard rollover functions here; image swapping functions
</script>
</head>
<body onload=”…..loads images”>
<!--#include file=”include/navigation.html”>
<!--#include file=”include/footer.html”>
</body>
</html>
Before I change these includes, the rollover works great. However, in order for the header, navigation, and footer to show, I have to update the #include to <cfinclude>. Here’s the shell for that:
<html>
<head>
<cfinclude template=”include/header.html”>
<script language=”Javascript” type=”text/Javascript”>
…..standard rollover functions here; image swapping functions
</script>
</head>
<body onload=”…..loads images”>
< cfinclude template =”include/navigation.html”>
< cfinclude template =”include/footer.html”>
</body>
</html>
When I do this, though, the header, navigation, and footer info shows, but the rollover no longer works. Is there a way to keep my include and retain the JS as well?
Any help is appreciated.
Thanks,
Scripter73
Change Your Thinking, Change Your Life.
I have a .CFM template that was originally handed off to me as a .HTML file, so I could include the ColdFusion functionality.
In the original .HTML file, there were Javascript includes for headers/footers. The shell of the .HTML file looks like the following:
<html>
<head>
<!--#include file=”include/header.html”>
<script language=”Javascript” type=”text/Javascript”>
…..standard rollover functions here; image swapping functions
</script>
</head>
<body onload=”…..loads images”>
<!--#include file=”include/navigation.html”>
<!--#include file=”include/footer.html”>
</body>
</html>
Before I change these includes, the rollover works great. However, in order for the header, navigation, and footer to show, I have to update the #include to <cfinclude>. Here’s the shell for that:
<html>
<head>
<cfinclude template=”include/header.html”>
<script language=”Javascript” type=”text/Javascript”>
…..standard rollover functions here; image swapping functions
</script>
</head>
<body onload=”…..loads images”>
< cfinclude template =”include/navigation.html”>
< cfinclude template =”include/footer.html”>
</body>
</html>
When I do this, though, the header, navigation, and footer info shows, but the rollover no longer works. Is there a way to keep my include and retain the JS as well?
Any help is appreciated.
Thanks,
Scripter73
Change Your Thinking, Change Your Life.