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 423,632 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,182 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

Eek!

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: 108
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  
All times are GMT -4. The time now is 9:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC