Forum Moderators: open
I have an external js, which has all the DW rollover functions in it
<SCRIPT LANGUAGE="JavaScript" SRC="rolloverstuff.js"></SCRIPT>
I thought that by putting the rollover stuff in a separate js would helps with download times and SEO.
This link to the js is part of the template in the head. The template structure is
<HTML><!-- #BeginTemplate "/Templates/template.dwt" --><!-- DW6 -->
<HEAD>
<!-- #BeginEditable "doctitle" -->
<title> Whatever title </title>
<!-- #EndEditable -->
<!-- #BeginEditable "metas" -->
<!-- #EndEditable -->
<link rel="stylesheet" href="../cc.css"><SCRIPT LANGUAGE="JavaScript" SRC="../dwrolloverstuff.js"></SCRIPT>
</head>
<body...
Each time I update the template, and if one of the pages I update has a rollover in it, DW inserts
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() blah blah
function MM_preloadImages() blah blah
function MM_findObj(n, d) blah blah
function MM_swapImage() blah blah
//-->
</script>
into the editable
<!-- #BeginEditable "metas" -->
<!-- #EndEditable -->
I appreciate DW is only trying to be help, but I want wondered if I could switch this off, as I only delete it as the functions are in the dwrolloverstuff.js. Is it a bug? It’s very annoying and quite time consuming finding and deleting before publish. (I personally can't stand rollovers, but I won't go there.)
I don't want DW to insert the rollover stuff again because it's already contained in the dwrolloverstuff.js.
Can I prevent DW from inserting the rollover functions each time I update the template?
[edited by: caine at 1:52 pm (utc) on May 7, 2003]
[edit reason] Specific term used, probably an oversight - however against TOS [/edit]