Java Script In Xhtml Page

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

8 replies · 796 views · started 19 years ago · 1 min read

5 participants
wizard Senior · 493 posts #1

can sum1 whoi knows java script help me plz. im doing a web page with java script included but the java script functions are not working. plz tell me wuts wrong with this page

<?php

include("config.php");

header("content-type: application/xhtml+xml; charset=utf-8");

echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

        <head>

    <title>Fun Mobile ™</title>

<script language="javascript">

himg1 = new Image();
himg1.src = "images/h1.png";
himg2 = new Image();
himg2.src = "images/h2.png";

function swapImg(el,newone)
{
    iml = "url('"+newone+"')"
    el.style.backgroundImage = iml;
}
function gotourl(loc)
{
    window.location = loc;
}
</script>

        <link rel="StyleSheet" type="text/css" href="style/1.css" />

        <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />

    </head>

<body link="#CC0000" vlink="#CC0000" alink="#CC0000" bgcolor="#555555" bottommargin="0" topmargin="0">
<table width="800" border="0" bordercolor="#000000" style="border-collapse:collapse" align="center" bgcolor="#F0F0F0">
<tr>
<td width="800" height="150" background="images/logo.png" colspan="7">
</td>

</tr>

<tr>

<td width="97" height="31" background="images/1.png">

</td>

<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>

<td width="218" height="31" background="images/1.png">

</td>

</tr>

<tr>

<td colspan="7" width="800" height="500" valign="top">

<table width="780" border="0" style="border-collapse:collapse" cellspacing="0" cellpadding="0">

</table>

</td>

</tr>

</table>

            </body>

    </html>
subzero Super moderator Fellow · 3,954 posts #2

a error

<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>
<td width="97" height="31" background="images/h1.png" style="cursor:pointer" onMouseUp="gotourl('index.php')" onMouseOver="swapImg(this,'images/h2.png');return true;" onMouseOut="swapImg(this, 'images/h1.png');return true;"></td>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #4

some fones dont have java scripting

the ones i know has it is 6630 nokia and up External image (may be gone)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close