T O P I C R E V I E W |
rmmarsh |
Posted - 02 Mar 2008 : 16:10:36 I have multiple flash files I want to place on my website (they are tutorials on how to use my software). I would like the user to be able to choose which tutorial he wants to watch.
What's the best way to accomplish this? |
9 L A T E S T R E P L I E S (Newest First) |
Tonivel |
Posted - 25 Mar 2008 : 13:58:27 Hi everybody,
I already tested... but, thus he only works:
1- give your Iframe an ID so you can find it on the page
ex: <iframe id="pippo" src="pluto.htm"></iframe>
2- use this simple script to change the src, put in into the "header" section of your page
<script language="javascript" type="text/javascript"> <!--
function changeIframeSrc(url) {
//document.getElementById("pippo").document.location=url; (not work)
document.getElementById("pippo").src=url;
}
//--> </script>
3- create an event, javacall and write "changeIframeSrc('http://www.google.com');"
Note: 'http://www.google.com' (With ' not ")
|
rmmarsh |
Posted - 24 Mar 2008 : 02:52:14 That looks like it might work... I'll give it a try and post my results... thanks |
s.dav |
Posted - 23 Mar 2008 : 12:12:08 Ok very simple again:
1- give your Iframe an ID so you can find it on the page
ex: <iframe id="pippo" src="pluto.htm"></iframe>
2- use this simple script to change the src, put in into the "header" section of your page
<script language="javascript" type="text/javascript"> <!--
function changeIframeSrc(url) {
document.getElementById("pippo").document.location=url;
// also this should work but the previous is more compatible //document.getElementById("pippo").src=url;
}
//--> </script>
3- create an event, javacall and write "changeIframeSrc("http://www.google.com");"
|
T00N |
Posted - 23 Mar 2008 : 06:37:34 Nope that's not what we mean.
We want to be able to change the source of the iframe.
|
s.dav |
Posted - 22 Mar 2008 : 16:21:20 You can do it with a very simple code without using Javascript
1- give your IFRAME a name <iframe name="pippo" src="mypage.html"></iframe> 2- create link and set the "target" property to "pippo" if your IFrame has the name="pippo"; the link will be loaded into the Iframe
Very simple ;-)
|
rmmarsh |
Posted - 22 Mar 2008 : 13:40:48 Toon: yep, that's exactly what I want... |
T00N |
Posted - 21 Mar 2008 : 20:08:09 You mean like:
When you hit button 'ABCD' then the source of the iframe is ABCD.
That would be usefull for me too. |
rmmarsh |
Posted - 21 Mar 2008 : 19:29:17 One more question: is there a way I can populate an iFrame with the necessary information when a user clicks a button to play a flash file? If I have 6 flash files, I don't want to load all 6 of them; I only want to load and play when the user chooses a particular file by clicking on a button (kind of like a menu) |
Edigital |
Posted - 02 Mar 2008 : 17:05:23 Rmmarsh
I suggest to use a Master-page with container and grafical Menu
1. Create a Master Page 2. Create a Container 3. Build one page for each tutor-flash movie 4. Associate each page/tutor to Master-Container page 5. Back to Master page and Build Navigation Menu (Vertical if you have many tutorials)
(See this topic http://www.hexagora.com/forum/topic.asp?TOPIC_ID=1253 if you want an example) Regards..
|