GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Apr-2003, 12:11
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road

Why does javascript cause sound problem to website


Good Morning everyone,

This is my first offical post on this forumn. Im creating a resume mostly in Swish (its like Flash) with FP2000, that Im going to be distributing on CD. I wanted my CD presentation to be in full screen browser view, so I found a code at a place called the "The Javascript s..." and added to my site.
Now when I preview my presentation the begining jazz loop I added is doubling over itself, & when you click the sound on/off button it stops 1 loops, & you can still hear it playing. If I remove the javascript the presentation works perfectly, but unfortunately I don't have a full screen presentation then? What have I done wrong? Is this a faluty script, or do I need a different script? Im a newbie at this and i would appreciate any help. To show you what I mean i posted both files: Resume1 (without script) & (Resume2 w/script) & also added my flash files if you need to see them.
You can download my examples at: http://uniteddistributorscanada.hypermart.net/

Thank you very much

PS: heads up on the pop ups
  #2  
Old 29-Apr-2003, 07:55
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,095
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
Hello and welcome. Ok I took a look at your site sorry it took so long but I checked it out both Resume1 & Resume2 and they worked perfectly as far as I can tell it seems to be working. I'm at work right now and I won't be getting home until about 5PM my time (EST) when I get home I'll take another look just to make sure. I have some music software there that will help me out but as far as the looping still playing on the full screen resume after you turn off the music I didn't hear it. and it seem that only the one copy of the music clip was play and it didn't seem to be playing over itself.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #3  
Old 29-Apr-2003, 10:40
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
Weclome to the forum Rhino1616.
I have the same response as Pcxgamer, nice effort with the resume as well. I seem to remember another site which had the same exact problem though. By the way have you got the latest version of the flash plugin? I know its easy to overlook, but maybe you should just check.
I was a bit confused but I was capable of making both swf's full screen. Maybe that is because I have Macromedia Flash on my computer although I'm not sure.
Rob
  #4  
Old 29-Apr-2003, 15:28
pcxgamer's Avatar
pcxgamer pcxgamer is offline
Senior Member
 
Join Date: Sep 2002
Location: South Carolina, USA
Posts: 1,095
pcxgamer is a jewel in the roughpcxgamer is a jewel in the roughpcxgamer is a jewel in the rough
Ok I check the files at home and they still seem fine so I would say that there ok. I didn't hear anything worry and they both sounded fine. Good work by the way.
__________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization.
  #5  
Old 29-Apr-2003, 15:35
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
Maybe you might find an alternative here: http://qlib.quazzle.com/

Quote:
QLIB is an open source library of JavaScript foundation objects. It includes cross-browser implementation of a button, checkbox, progress bar, counter, overlay window, dialog box etc. Total there're 16 objects in the collection and this count is growing.

QLIB differs from lots of similar collections mainly by propagating the OOP principles into JavaScript. Yes, it's based on and encourages developers to adhere object-oriented programming style. Being compatible with wide range of browsers is its second relevant advantage.

JavaScript is a prototype-based object-oriented language. QLIB takes advantage of prototyping and builds up the hierarchy of objects. Object inheritance simplifies the development and significantly reduces the traffic. It's time to forget old-fashioned basic-style coding. Attain professional quality of your web-projects with QLIB!
  #6  
Old 29-Apr-2003, 17:11
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
Hi guys, thanks for posting. You have no idea how this is driving me crazy. I emailed this to a firend & he emailed me back whats wrong, but I never heard from him & cant get a hold of him. Im a bit of a rookie & I dont know how to rectify These problems. This is what he wrote:

1) First problem is that you're declaring your flash object inside a fixed-size DIV and also giving it a fixed size of its own.


2)You're launching the resume page from itself, which opens up two instances of your flash object. This means that your sound loop gets instantiated twice, making it sound all funky.


3)You're putting all this on a CD. HTML is made for the Web. The easiest way to create something like this would be to to export the SWF as an EXE file and set your FSMode to fullscreen. You can then create and autorun.inf file that specifies resume.exe to start when the CD is entered in the CD Tray, making it a true Flash CD.

If you need to download my examples thier at: http://uniteddistributorscanada.hypermart.net/

If you guys can help out, it would be GREATLY appreciated

Thanks
  #7  
Old 29-Apr-2003, 17:31
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
Below is your code from the index file. See where the div tag is you've written an absolute size of width: 564 and height 19. This needs to be changed. as does the 800 x 600 settings all to 100% like below

HTML Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta http-equiv="Content-Language" content="en-us"> <title>Home Page</title> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body> <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"> <!--webbot bot="HTMLMarkup" startspan --><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="CD_Resume-GOOD_COPY" width="100%" height="100%"> <param name="movie" value="CD Resume-GOOD COPY.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000066"> <embed name="CD_Resume-GOOD_COPY" src="CD Resume-GOOD COPY.swf" quality="high" bgcolor="#000066" width="100%" height="100%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </embed> </object> <!--webbot bot="HTMLMarkup" endspan --> </div> </body> </html>

2) If we go back to this bit of the code:
Code:
id="CD_Resume-GOOD_COPY" width="100%" height="100%"> <param name="movie" value="CD Resume-GOOD COPY.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000066"> <embed name="CD_Resume-GOOD_COPY" src="CD Resume-GOOD COPY.swf" quality="high" bgcolor="#000066" width="100%" height="100%"

Someone else will have to confirm this to me but you've mentioned the swf twice and I don't think it is necessary and so two instances of the program are likely to appear. I removed the <embed name line up to the 100% and it still loads up fine so I think that is what he is referring to.

3) I've no idea how swish works, but with Macromedia Flash there's an export tool which allows you to well...export the files to swf's, exe's, some others and if he knew you were using swish, I'm thinking that there must be that function too.

Hope this helps

Rob
  #8  
Old 29-Apr-2003, 18:18
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
I found a swf to exe converter if you are interested at http://www.buraks.com/swifty/sbpc.html and I tested it out and it works for me. You need the flash player within your computer not just as a plugin for IE or netscape. If you are having problems I've already made an executable that comes in as 1 mb and I'll let you know where to download it.

Rob
  #9  
Old 06-May-2003, 17:25
rhino1616 rhino1616 is offline
Junior Member
 
Join Date: Apr 2003
Posts: 46
rhino1616 is on a distinguished road
I appreciate the help, Thanks
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate 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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
We're looking for JavaScript codes / mini tutorials. JdS Web Design Forum 8 23-Nov-2008 04:27
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 10:16
Why doesnt my website open to the homepage? rhino1616 Web Design Forum 6 12-Aug-2003 07:55
client side problem zuzupus MySQL / PHP Forum 2 22-Jul-2003 07:47
How I sorted my website compression problem jrobbio MySQL / PHP Forum 0 05-Mar-2003 21:41

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:15.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.