|
Javascript Swf Files Rotate Issue...
10-26-2006, 01:55 PM
|
Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Hi all,
I have this little issue on my hands...
I have a swf file on this page
Code:
http://classicgames.servebeer.com/public/default.htm
but I want to rotate many swf files like the one shown on that page, but I want to rotate them via a javascript (if possible) based on the day of the week...Can that be done?
Tia
|
|
|
|
10-26-2006, 06:37 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
www.libreriapandevida.com
Yup. I know it works. I'm the one that made it. 
|
|
|
|
10-27-2006, 12:12 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Hi Adam,
Could you send me a javascript that does it then?
Tia
|
|
|
|
10-27-2006, 12:29 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
|
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|
|
|
|
10-27-2006, 12:35 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Hi,
...And to call that javascript?
Please help...
Tia
|
|
|
|
10-27-2006, 12:40 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
|
Check out the html source on ADAM's link for his example - I have not used it myself
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|
|
|
|
10-27-2006, 01:09 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
I can't seem to get it working...
I am using this to call the js:
Code:
<script type="text/javascript" src="rotator.js">
Just getting a blank page
I even tried just substituting the filenames from the path in the javascript to 1.swf, 2.swf etc...and renaming my files to the corrosponding names, and it still didn't want to work.
Some more help available?
Tia
|
|
|
|
10-27-2006, 02:17 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Then, is it possible you could figure this one out? I can't get this one to work either, but it looks a little less 'cryptic'. This one just 'sticks' when trying to load, it doesn't display, browser just keeps trying to load up, but it doesn't. Looks to me like a basic syntax error, but I can't find it.
Code:
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH=320 HEIGHT=240>
<param name="movie">
<param name="quality" value="High">
<script LANGUAGE="JavaScript">
today = new Date();
day = today.getDay();
arday = new Array("sunday.swf", "monday.swf", "tuesday.swf", "wednesday.swf", "thursday.swf", "friday.swf", "saturday.swf");
document.write("<PARAM NAME=movie VALUE='" + arday[day] + "'>
<PARAM NAME=quality VALUE=best>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src='" + arday[day] + "' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' quality=best bgcolor=#FFFFFF WIDTH=320 HEIGHT=240></EMBED>");
// End -->
</script>
Last edited by Frostydasnowman; 10-27-2006 at 02:20 AM..
|
|
|
|
10-27-2006, 02:45 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
Quote:
Originally Posted by Frostydasnowman
I can't seem to get it working...
I am using this to call the js:
Code:
<script type="text/javascript" src="rotator.js">
Just getting a blank page
I even tried just substituting the filenames from the path in the javascript to 1.swf, 2.swf etc...and renaming my files to the corrosponding names, and it still didn't want to work.
Some more help available?
Tia
|
Could you post the URL you tried it on? Maybe I can figure it out.
|
|
|
|
10-27-2006, 03:18 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Code:
Http://classicgames.servebeer.com/public/scripts/rotate/test.html
Tia
|
|
|
|
10-27-2006, 03:32 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Are you working on it?
|
|
|
|
10-27-2006, 04:53 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
You need the ending script tag.
</script>
ANY time you call an external Javascript without an ending script tag, you'll get that effect.
|
|
|
|
10-27-2006, 05:25 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
I tried it adding the </script> tag and still no good.
Try reposting the code the way you want me to test it, then i will test it.
Tia
|
|
|
|
10-29-2006, 04:04 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
Reposting it? I don't understand.
|
|
|
|
10-29-2006, 05:39 AM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Quote:
Yup. I know it works. I'm the one that made it.
|
Ok,
Then repost your *working* code so I can test it to see if it works on my server.
Tia
|
|
|
|
10-29-2006, 01:49 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
|
|
|
|
10-29-2006, 02:09 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 61
Name: Oh, don't go there
Location: United States
|
Thanks bud, I have got something out of nothing basically, but I got something, not the best, but, it'll do which is good.
Thanks again!
|
|
|
|
10-29-2006, 02:17 PM
|
Re: Javascript Swf Files Rotate Issue...
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
You're welcome, I think.
|
|
|
|
|
« Reply to Javascript Swf Files Rotate Issue...
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|