| | |
Flash within DHTML
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2005
Posts: 20
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by mcricks
Does anyone know if it is possible to place a .swf within a dhtml dropdown. For instance, On click drop down and externally load an swf within the dropdown. Any feedback would be great. Thanks
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function loadFlash(theurl,width,height) { document.getElementById("divname").innerHTML ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ width + '" height="'+ height + '"><param name="movie" value=" '+ theurl + '" /><param name="quality" value="high" /><param name="SCALE" value="exactfit" /><embed src="'+ theurl + '" width="'+ width + '" height="'+ height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit" /><\/embed><\/object>'; }
Then call the loadflash function from the onmousedown event in your menus like so
onmousedown="loadFlash('music.swf',80,60)"
I use this method to progressively load music on my DHTML Nirvana site and also load the flash movies.
Eddie Traversa
DHTML Nirvana
http://dhtmlnirvana.com/
Spiritual Blog
http://www.truthrealization.com/
![]() |
Similar Threads
- Building a Flash based dynamic photo album (Graphics and Multimedia)
- Is Flash the Future? (Graphics and Multimedia)
- Mouseover/Rollover (JavaScript / DHTML / AJAX)
- dhtml menu and flash (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Javascript generated drop down menu
- Next Thread: IFRAMES as a buffer
Views: 3324 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash form forms frameworks game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps margin marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n





