User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 373,524 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,771 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1320 | Replies: 11
Reply
Join Date: Oct 2005
Posts: 68
Reputation: eltommyo is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
eltommyo's Avatar
eltommyo eltommyo is offline Offline
Junior Poster in Training

Re: Eek!

  #11  
May 22nd, 2006
Can Someone Help Me Please?
Proud website owner!
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 107
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Eek!

  #12  
May 22nd, 2006
I'm sifting through your HTML and one area that firefox spots as a problem is here (near the bottom):
<img src='http://www.galacticwebdesigns.com/topsites/button.php?u=eltommyo' alt='Galacticwebdesigns's TopSites List' border='0' />
The Problem there, is that after the alt you use ' instead of ", so when you use Galacticwebdesign's (problem with ' in design's) it throws the html out of whack, so try this:
<img src='http://www.galacticwebdesigns.com/topsites/button.php?u=eltommyo' alt="Galacticwebdesigns's TopSites List" border='0' />
That's not going to fix your problem, but it's something I spotted. The same thing goes on (which is probably why firefox doesn't play it) in your javascript for the play button:
<input TYPE='BUTTON' NAME='darkplay' VALUE='Play!' OnClick='play(document.forms['form'].playlist);'>

The key to understanding this, is that in programming everything you open, you must also close. Here, you close what is opened, but before it's due time. Look at the onclick portion of the code here. You open the javascript statement with '. Then you get to the document.forms[ and you close the first ' with another '. Try this:
<input TYPE='BUTTON' NAME='darkplay' VALUE='Play!' OnClick="play(document.forms['form'].playlist);">
Now onto your play function.
function play(list)
{
     if (playstate == 2) {
          document.darkplayer.Play();
     } else {
          var snum = list.options[list.selectedIndex].value
          document.darkplayer.FileName = songs[snum];
          document.darkplayer.scr = songs[snum];
     }
     playstate = 1;
}
Ok, so if playstate is not equal to 2, then it sets snum to the song selected, set's the players filename and src properties, but uh, where does it tell the player to play again?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC