Help - Search - Members - Calendar
Full Version: Javascript in Entries
Movable Type Community Forum > Additional Resources > Tips and Tricks
tstubbs
I want to be able to drop code like the following into ordinary entries.  Is there a general way to imbed scripts in entries?

Thx,

T


CODE
<script>
var site_id="bcg4.swf|censored|2|3|14|n|";
var wmid="walden";
var param="c|";
var doc_r=document;
</script>
<script src="http://www.bigplayers.com/bp.js">
</script>
<script LANGUAGE="VBScript">
<!--
Sub banp_FSCommand(ByVal command, ByVal args)
    call banp_DoFSCommand(command, args)
end sub
//-->
</SCRIPT>
girlie
I'm guessing you're running into problems because of the convert breaks feature?

Does it work if you wrap it in a div tag:

CODE
<div>
<script>
var site_id="bcg4.swf|censored|2|3|14|n|";
var wmid="walden";
var param="c|";
var doc_r=document;
</script>
<script src="http://www.bigplayers.com/bp.js">
</script>
<script LANGUAGE="VBScript">
<!--
Sub banp_FSCommand(ByVal command, ByVal args)
call banp_DoFSCommand(command, args)
end sub
//-->
</SCRIPT>
</div>


(Convert Breaks won't put the <br /> tags in there when the paragraph begins with a <div> tag.)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.