Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 decade ago

Why doesn't this code work? D:?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dt...

<html>

<head>

<title>Your Movie</title>

<style type="text/css">

body {background-color:black;}

table {vertical-align:middle;

background-color: red;

border: solid 20px black;

margin: 1% 8% 1% 8%;

outline: dotted 3px grey;

padding: 20px;}

table th {padding: 8px;

cell-padding: 30px;

border: solid 5px black;

color: black;

text-align: justified;

font-size: xx-large;

font-family: fantasy;

font-weight: bolder;

word-spacing: 10px;

letter-spacing: 5px;

text-transform: capitalize;}

table td {padding: 8px;

cell-padding: 25px;

border: solid 5px black;

vertical-align: middle;

text-align: center}

input {background-color: red;

border: solid 1px red;

color: black;

font-size: x-large;

font-family: fantasy;

font-weight: bold;

text-transform: uppercase;}

</style>

<script type="text/javascript" language="javascript">

var pictures= new Array();

var i=1;

var limit=100;

while (i<=limit) {

pictures [i-1] = i+".jpg";

i++

}

var frame = 0;

var timer;

function play () {

if (frame==pictures.length){}

else {

document.getElementById("stage").src=pictures[frame];

frame++;

timer=setTimeout("play ()", 5000)

}

}

function pause () {

clearTimeout(timer)

}

function start(){

frame=0

play ()

}

</script>

</head>

<body>

<table>

<tr><th colspan="3">AIR: Adventures in Responsibility</th></tr>

<tr><td colspan="3"><img id="cover" src="Cover.jpg" border="0" alt="Animation"/></td></tr>

<tr><td><input type="button" value="Start" onclick="start()" /></td>

<td><input type="button" value="Play" onclick="play()" /></td>

<td><input type="button" value="Pause" onclick="pause()" /></td></tr>

</table>

</body>

</html>

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Well there are a few errors I can see quickly.

    <styletype not <style type

    <scripttype="text/javascript";language="javascript"> not

    <script type="text/javascript" language="javascript">

    <tdcolspan not <td colspan

    <inputtype not input type

    I would download notepad++ and use that to help you solve coding problems. Just search in google and you will find it, also it is free.

  • Growl
    Lv 6
    1 decade ago

    As is it works in Firefox, Chrome, Safari and Opera. It does not work in IE.

    The DOCTYPE designation appears to be incorrect. Remove it and the page works in IE also.

  • 1 decade ago

    it does

Still have questions? Get your answers by asking now.