Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript Swf Files Rotate Issue...
Old 10-26-2006, 01:55 PM Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
 
Register now for full access!
Old 10-26-2006, 06:37 PM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
www.libreriapandevida.com

Yup. I know it works. I'm the one that made it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-27-2006, 12:12 AM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
Hi Adam,

Could you send me a javascript that does it then?

Tia
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 12:29 AM Re: Javascript Swf Files Rotate Issue...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
To use ADAM's code, just go to http://www.libreriapandevida.com/Javascripts/rotator.js and save the file
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 10-27-2006, 12:35 AM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
Hi,

...And to call that javascript?

Please help...

Tia
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 12:40 AM Re: Javascript Swf Files Rotate Issue...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
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.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 10-27-2006, 01:09 AM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 02:17 AM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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..
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 02:45 PM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Quote:
Originally Posted by Frostydasnowman View Post
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-27-2006, 03:18 PM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
Code:
Http://classicgames.servebeer.com/public/scripts/rotate/test.html
Tia
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 03:32 PM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
Are you working on it?
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-27-2006, 04:53 PM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You need the ending script tag.

</script>

ANY time you call an external Javascript without an ending script tag, you'll get that effect.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-27-2006, 05:25 PM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-29-2006, 04:04 AM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Reposting it? I don't understand.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-29-2006, 05:39 AM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-29-2006, 01:49 PM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It's right there on the site. Take it and go nuts.

http://www.libreriapandevida.com/Javascripts/rotator.js
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-29-2006, 02:09 PM Re: Javascript Swf Files Rotate Issue...
Banned

Posts: 61
Name: Oh, don't go there
Location: United States
Trades: 0
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!
Frostydasnowman is offline
Reply With Quote
View Public Profile Visit Frostydasnowman's homepage!
 
Old 10-29-2006, 02:17 PM Re: Javascript Swf Files Rotate Issue...
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You're welcome, I think.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Javascript Swf Files Rotate Issue...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.32492 seconds with 12 queries