MyBB Community Forums

Full Version: Maybe Some One here Can help me with a drag and drop script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have bought a drag and drop script from
http://www.dynamicreport.com/
But when I add the code to MyBB templates It will not Valdate
Code
<html>
	<head>
		<meta http-equiv = "Content-Type" content = "text/html; charset=iso-8859-1">
		<title>Drag and Drop Flash Objects</title>

		<meta name = "copyright" content = "Interaxis">

		<link rel = "stylesheet" href = "css/ddobj.css" type = "text/css">

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

		<script src = "js/ddobj.js" type = "text/javascript"></script>
	</head>

	<body onload = "javascript: dd_pkg.init (3);" bgcolor = "#C0C0C0" text = "#000000">

		<p>
			<a href = "#" onclick = "javascript: dd_obj[0].params ({FLASHOBJ : true}); dd_obj[0].show (0, '<p class = \'dd_caption_blk\'>Flash Content</p>', flash_embed (), 300); dd_obj[0].release (); return false;">
			Activate Flash embedded drag and drop object
			</a>
		</p>

		<p>&nbsp;</p>

		<p>This script can be found at <a href = "http://www.dynamicreport.com/ddobj.html">dynamicreport.com</a></p>

	</body>
</html>
So it seams prity simple
put in header includes
<link rel = "stylesheet" href = "css/ddobj.css" type = "text/css">

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

		<script src = "js/ddobj.js" type = "text/javascript"></script>
and this on the index template above </body>
<p>
			<a href = "#" onclick = "javascript: dd_obj[0].params ({FLASHOBJ : true}); dd_obj[0].show (0, '<p class = \'dd_caption_blk\'>Flash Content</p>', flash_embed (), 300); dd_obj[0].release (); return false;">
			Activate Flash embedded drag and drop object
			</a>
		</p>

		<p>&nbsp;</p>

		<p>This script can be found at <a href = "http://www.dynamicreport.com/ddobj.html">dynamicreport.com</a></p>
then add this (onload = "javascript: dd_pkg.init (3);" bgcolor = "#C0C0C0" text = "#000000") to the body tag
Right
but it will not valdate unless i take this out
<p class = \'dd_caption_blk\'>Flash Content</p>

Can any one help me with this?
webpage I am testing it on
http://www.mybblife.co.cc/MyBB
I think i got it now
had to replace
<p class = \'dd_caption_blk\'>Flash Content</p>
with
&lt;p class = \'dd_caption_blk\'&gt;Flash Content&lt;/p&gt;