need <script> tag to work with Flash


I need to put a widget on my site using the script tag. How can I do this so that it works in a flash site?

<script src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493" type="text/javascript" charset="utf-8"></script>



Any help is appreciated!
DantechITAsked:
Who is Participating?
 
dgofmanCommented:
So, use this URL in IFRAME src
0
 
dgofmanCommented:
You can not. You can add your widget above or bellow but not inside Flash Player.
Another solution you can create an IFRAME and move on top a FlashPlayer
0
 
DantechITAuthor Commented:

http://www.dantechmsp.com/dantechitnew2/site_flash/

If you go to Get Help tab I need it on that page. Is it possible to do it there?

How do I do an Iframe?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
DantechITAuthor Commented:
just tried

<iframe  src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1183293" type="text/javascript" charset="utf-8"></iframe>

but it didn't change anything.
0
 
dgofmanCommented:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="http://www.yahoo.com" frameborder="0"></iframe>
</div>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
</BODY>
</HTML>

Open in new window

0
 
dgofmanCommented:
Or always on top

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="http://www.yahoo.com" frameborder="0"></iframe>
</div>
</BODY>
</HTML>

Open in new window

0
 
DantechITAuthor Commented:
I can't get the Iframe to show the script. I substituted it for the yahoo link but it doesn't show up.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<div>
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="pluginurl" width="100%" height="100%"
			codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
			<param name="movie" value="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" />
			<param name="quality" value="high" />
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="base" value="http://www.dantechmsp.com/dantechitnew2/site_flash/"/>
			<embed src="http://www.dantechmsp.com/dantechitnew2/site_flash/flash/main_v8.swf" quality="high"
				width="100%" height="100%" name="pluginurl" align="middle"
				play="true"
				loop="false"
				quality="high"
				allowScriptAccess="sameDomain"
				type="application/x-shockwave-flash"
				base="http://www.dantechmsp.com/dantechitnew2/site_flash/"
				pluginspage="http://www.adobe.com/go/getflashplayer">
			</embed>
	</object>
</div>
<div style="position:absolute; left:250; top:100">
	<iframe width="560" height="315" src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493" type="text/javascript" charset="utf-8" frameborder="0"></iframe>
</div>
</BODY>
</HTML>

Open in new window

0
 
dgofmanCommented:
Create ASP new page or PHP script (I don't know what are you using on the server) and add just three lines. In the future you will subtitute "accountid" value by dynamic variable

<HTML>
<SCRIPT LANGUAGE="JavaScript" src="https://www.crossloop.com/widgetjs/pro_contact_widget.js?accountid=1184493"></SCRIPT>
</HTML>


Now call this page from IFRAME  like

<iframe width="560" height="315" src="widget.html" frameborder="0"></iframe>
0
 
dgofmanCommented:
I will recommned to pass an accountid from the IFRAME

<iframe width="560" height="315" src="widget.php?accountid=1184493" frameborder="0"></iframe>
0
 
DantechITAuthor Commented:
Thank you. I made both an asp page and a php page but neither work. It didn't show up and threw off the alignment on the flash menu


http://www.dantechmsp.com/dantechitnew2/site_flash/

Did I do something wrong?
0
 
dgofmanCommented:
In this case are you sure your JavaScript is working?

The page is blank what do you expect to see?

http://www.dantechmsp.com/dantechitnew2/site_flash/widget.php?accountid=1183293
0
 
DantechITAuthor Commented:
0
 
DantechITAuthor Commented:
Ok it shows up not but it goes away whenever I click on a link. I would like it to either stay visible he whole time or only when Get Helped is clicked.
0
 
dgofmanCommented:
Check answer
10/21/11 11:31 PM,
ID: 37010321
0
 
DantechITAuthor Commented:
Awesome, thank you.
0
 
DantechITAuthor Commented:
Hey any chance you know how to get rid of the scroll bar?
0
 
DantechITAuthor Commented:
got it.


SCROLLING=NO
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.