Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Flash head tag conflict
Old 10-16-2007, 01:58 PM Flash head tag conflict
Average Talker

Posts: 27
Trades: 0
I have a template that was created in Adobe GoLive and the company recently switched me over to Dreamweaver. When I tried to insert Flash I got the following error message.

You cannot insert this content with browser-safe scripts because the <head> tag is in a locked region. To insert the contect with browser-safe scripts, open the template file "file name" and either unlock the <head> tag or add this content to the template.


I have never seen this error before and wanted any feedback possible before I messed up my code too bad. Here is my head tag.

<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>Welcome to Company X</title>
<link href="../css/basic.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

Thank you for the assistance!

Last edited by jengiss; 10-16-2007 at 03:29 PM..
jengiss is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-18-2007, 09:37 AM Re: Flash head tag conflict
Average Talker

Posts: 27
Trades: 0
The more I have been thinking about this problem I figured I needed to add a tag line into my template.

If I add this script into my template I hope to insert flash onto any page I want.

<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

Any comments would be appreciated.

Thank you
jengiss is offline
Reply With Quote
View Public Profile
 
Old 10-18-2007, 04:27 PM Re: Flash head tag conflict
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It would appear that you are attempting to edit a Dreamweaver Template file. In templates, you can specify editable regions and anything outside those regions is 'locked'. You need to edit the DW Template file that the HTML file was created from.

Somewhere in the code there something like <begin editable region> .. you will have to remove those in something like notepad first. However, if you do this, your layout may suffer as you are 'detaching' the file from the defined template.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Flash head tag conflict
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11831 seconds with 12 queries