|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
After 3 hours of research I found the way!
just add to the index page: function abrirSB(type, title, url) { Shadowbox.init({skipSetup: true}); Shadowbox.open({type: type, title: title, content: url}); }; and into flash file: getURL("javascript:abrirSB('img', 'Title', 'image.jpg');", "_self"); First value 'img' can be: "swf", "flv", "qt" (QuickTime), "wmp" (Windows Media Player), "iframe", oR "html". IT'S WORK! Bye |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
I am a beginner to coding... so I'm not sure what I need to modify in this
code. so this is what my actionscript look targetPhoto.onRelease = function() { getURL("javascript:abrirSB('img', 'Test Image', 'photos/photo001.jpg');", "_self"); }; and this is what I added to my html page within the body tag: function abrirSB(type, title, url) { Shadowbox.init({skipSetup: true}); Shadowbox.open({type: type, title: title, content: url}); }; Any is appreciated! |
|
![]() |
| Outils de la discussion | |
|
|