DantechIT
asked on
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!
ASKER
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?
ASKER
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.
<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.
<!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>
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>
ASKER
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>
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>
<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>
I will recommned to pass an accountid from the IFRAME
<iframe width="560" height="315" src="widget.php?accountid= 1184493" frameborder="0"></iframe>
<iframe width="560" height="315" src="widget.php?accountid=
ASKER
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?
http://www.dantechmsp.com/dantechitnew2/site_flash/
Did I do something wrong?
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
The page is blank what do you expect to see?
http://www.dantechmsp.com/dantechitnew2/site_flash/widget.php?accountid=1183293
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
Check answer
10/21/11 11:31 PM,
ID: 37010321
10/21/11 11:31 PM,
ID: 37010321
ASKER
Awesome, thank you.
ASKER
Hey any chance you know how to get rid of the scroll bar?
ASKER
got it.
SCROLLING=NO
SCROLLING=NO
Another solution you can create an IFRAME and move on top a FlashPlayer