Jump to content

Wilshire

Members
  • Posts

    5
  • Joined

  • Last visited

Wilshire's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I made a lyrics website for a cd that I like, and at the bottom of each page file I have an iframe with the src of that song so that you can play it as you read the lyrics. The file loads into the iframe and quicktime takes over and gives it's menu for stoping/playing etc. The problem is that once I've uploaded the page and the song onto a server, whenever I go to the site it prompts me if I want to download that song, instead of playing it through the iframe. Does anyone know how to fix this? ...<iframe src="music_file.m4a" height="18px" width="320px"></iframe>...
  2. That didn't work, but it certainally helped. Final version: <html><body><script type="text/javascript">var A = Number(prompt("Number:"));var B = Number(2);while (B<A){if (A%B == 0){break}B++;}if (B<A){document.write(A+" is not a prime number.")}else{document.write(A+" is a prime number.")}</script></body></html>
  3. This isn't working for me at all, nothing shows up: <html><body><script type="text/javascript">var A=Number(prompt("Number:"));var B=Number(1);While (B<Math.pow(A,.5)){B++if (A%B==0){break}}if (B<Math.pow(A,.5)){document.write(A+" is a prime number.")}else{document.write(A+" is not a prime number.")}</script></body></html>
  4. I'm trying to teach myself javascript, and going through some totorials I saw a counting example where it would count from 0 to 9 and display it. It was a little too easy, so I made my own version which would ask you where to start counting, where to end, and what to count by. For some reason, it combines everything into a string instead of adding the numbers. Code is below, any help would be appreciated. <html><head></head><body><script type="text/javascript">var start=prompt("Start at:");var end=prompt("End at:");var increment=prompt("Count by:");while (start<=end){document.write(start+"<br />");start+=increment;}</script></body></html>
×
×
  • Create New...