Dreamweaver head tag in editable region & swf file problems?
Posted: October 23rd, 2010 | Author: admin | Filed under: CWB Wakeboards | 1 Comment »
I have created a template to use for a website. In some of the pages, I want to add some spry panels and widgets. However, when I try, I get a pop up message telling me that the head tag is in a locked region and that to insert the content I have to unlock it.
Also, when I try to enter an swf file on a page, I get an error telling me that while executing objectTag in Flash.htm, a JavaScript error occured.
What can I do?
Below is the code of the template page:
Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Marine Leisure – Boats and Water Sports Equipment</title>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="1079" align="center">
<tr>
<td height="105"><img src="../images/Logos/header.jpg" width="648" height="158" alt="Marine Leisure" /> <div align="right"></div></td>
</tr>
<tr>
<td height="30" align="center" valign="middle"><div align="center">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="../index.html">Home</a> </li>
<li><a href="#">About Us</a></li>
<li><a href="#">Products</a> </li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div></td>
</tr>
<tr>
<td height="30"><img src="../images/designs/menubar_blue.png" width="1084" height="44" /></td>
</tr>
<tr>
<td height="186"><!– TemplateBeginEditable name="Main" –>
Main<!– TemplateEndEditable –></td>
</tr>
<tr>
<td height="16"><p class="whitetext">Canoe, Canoes, Canoeing, Canoeing in Malta, Kayak, Kayaks, Ringo, ringo ride, ringo rides malta, ski, skiis, skiing in malta, water skiing, wakeboard, wakeboards, wakeboards in Malta, liferafts, water bananas, bananas, banana, water banana, cwb, CWB, connelly, connelly malta, Ray CWB, ray cwb, Connelly Malta, CWB Malta, cwb Malta life jackets, lifejackets, towable, towables, inflatable, inflatables, Futire Beach, Futire Beach Malta, Janautica, Janautica Malta, janautica, nicolai, nicolai malta, zebec, zebec malta, Sportsstuss, Sportsstuff malta, EV, EV malta, Caligari, Ray Caligari, Caligari sports, Caligari water sports, water sports, sea, sun.</p></td>
</tr>
<tr>
<td height="75"><img src="../images/Logos/CWB.jpg" width="136" height="45" alt="CWB" /> <img src="../images/Logos/Connelly.jpg" width="161" height="37" alt="Connelly" /> <img src="../images/Logos/eurovinil.gif" width="119" height="50" alt="EV" /> <img src="../images/Logos/exell.gif" width="157" height="43" alt="Excel" /> <img src="../images/Logos/Future Beach logo.jpg" width="111" height="61" alt="Future Beach" /> <img src="../images/logos/Janautica.png" alt="Janautica" width="38" height="101" /><img src="../images/Logos/SSTUFF.gif" width="135" height="54" alt="Sportsstuff" /> <img src="../images/Logos/Nicolaj.jpg" width="90" height="67" alt="Nicolaj" /> <img src="../images/Logos/Zebec.gif" width="77" height="70" alt="Zebec" /></td>
</tr>
<tr>
<td height="46"><img src="../images/designs/bottombar.png" width="1084" height="44" /></td>
</tr>
</table>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
<
ok well im guessing your using dreamweaver yes? and im guessing you used the file>save as template option? if you did for some reason dreamweaver always locks the template. i havent had to mess with this issue in a while so i dont remember which option it is,but its something extremely simple. but if memory serves, its either Edit>template>unlock or modify>template>unlock.
As for the flash not working, again this is for dreamweaver. i learned this little trick in my first web design class. when you insert you flash document, select it, then change to the code screen, within that code there should be these two elements <noscript> and </noscript> delete them. see if that works. if not, "apple z" (or ctrl z) =P good luck


Watch Robby Carter in the 2009 CWB Board Co. Team Video – Inception! Go to www.cwb-tv.com to see all our videos!