|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi..my web is blank?couldn't find out wat is e mistake..
hi there bro/sis...im currently doing a scool project and it must use javascript...
i only cant figure out wats wrong with my last web...its totally blank...wen i go over again n again i cant see anything wrong...do need advise asap... <!--interests.html--> <html> <head></head> <body vlink="green" alink="orange" link="navy"> <script language="javascript"> document.write('<p><font size=3 color='black' face="Arial">Singapore is very well known for: the cleanest surroundings in Asia, a fascinating fusion of '); document.write(' different cultures…and last but certainly not the least of all, great shopping! This is one of the favourite hobbies of almost all'); document.write(' Singaporeans.</font></p>'); document.write('</br></br>'); document.write('<table bgcolor=white width=100%>'); document.write('<tr><u><b>CHINATOWN</b></u></tr>'); document.write('<tr><td><img src="Chinatown.jpg"></td>'); document.write('<td><p><font face="arial">Singapore's Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in'); document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.</br>'); document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into'); document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its'); document.write('own distinctive flavour. The heart of activity is in the Trengganu area.</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Little India document.write('<tr><u><b>LITTLE INDIA</b></u></tr>'); document.write('<tr><td><img src="lilindia.jpg"></td>'); document.write('<td><p><font face="arial">Singapore's Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in'); document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.</br>'); document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into'); document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its'); document.write('own distinctive flavour. The heart of activity is in the Trengganu area.</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Sentosa document.write('<tr><u><b>SENTOSA</b></u></tr>'); document.write('<tr><td><img src="sentosa.jpg"></td>'); document.write('<td><p><font face="arial">Sentosa is a familiar name with both Singaporeans and international visitors.'); document.write('For tourists, a visit to Singapore is incomplete without at least a day on this island resort.</br>'); document.write('Sentosa is packed full of fun places and attractions, such as Fort Siloso, the Merlion, Musical '); document.write('Fountain, Dolphin Lagoon and Underwater World.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Jurong Bird Park document.write('<tr><u><b>JURONG BIRD PARK</b></u></tr>'); document.write('<tr><td><img src="birdpark.jpg"></td>'); document.write('<td><p><font face="arial">Jurong Bird Park is the largest bird park in Asia Pacific and one of the world's finest.'); document.write('It has a collection of over 8000 birds and 600 species, probably the most extensive in the world.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Zoo document.write('<tr><u><b>ZOO</b></u></tr>'); document.write('<tr><td><img src="zoo.jpg"></td>'); document.write('<td><p><font face="arial">The Singapore Zoo is acclaimed for its wide range of species of animals. '); document.write('Featuring more than a hundred species of animals from all over the world,'); document.write('they are kept in beautifully decorated environments suited to each and every animal.'); document.write('The 1-hectare Primate Kingdom houses approximately 100 primates of 11 species.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); document.write('</table>'); </script> </body> </html> |
|
#2
|
|||
|
|||
|
i tried n look again n again but i cant seem to find wats wrong with it.....its totally blank...
pls anyone do help me.... <!--interests.html--> <html> <head></head> <body vlink="green" alink="orange" link="navy"> <script language="javascript"> document.write('<p><font size=3 color='black' face="Arial">Singapore is very well known for: the cleanest surroundings in Asia, a fascinating fusion of '); document.write(' different cultures…and last but certainly not the least of all, great shopping! This is one of the favourite hobbies of almost all'); document.write(' Singaporeans.</font></p>'); document.write('</br></br>'); document.write('<table bgcolor=white width=100%>'); document.write('<tr><u><b>CHINATOWN</b></u></tr>'); document.write('<tr><td><img src="Chinatown.jpg"></td>'); document.write('<td><p><font face="arial">Singapore's Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in'); document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.</br>'); document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into'); document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its'); document.write('own distinctive flavour. The heart of activity is in the Trengganu area.</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Little India document.write('<tr><u><b>LITTLE INDIA</b></u></tr>'); document.write('<tr><td><img src="lilindia.jpg"></td>'); document.write('<td><p><font face="arial">Singapore's Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in'); document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.</br>'); document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into'); document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its'); document.write('own distinctive flavour. The heart of activity is in the Trengganu area.</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Sentosa document.write('<tr><u><b>SENTOSA</b></u></tr>'); document.write('<tr><td><img src="sentosa.jpg"></td>'); document.write('<td><p><font face="arial">Sentosa is a familiar name with both Singaporeans and international visitors.'); document.write('For tourists, a visit to Singapore is incomplete without at least a day on this island resort.</br>'); document.write('Sentosa is packed full of fun places and attractions, such as Fort Siloso, the Merlion, Musical '); document.write('Fountain, Dolphin Lagoon and Underwater World.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Jurong Bird Park document.write('<tr><u><b>JURONG BIRD PARK</b></u></tr>'); document.write('<tr><td><img src="birdpark.jpg"></td>'); document.write('<td><p><font face="arial">Jurong Bird Park is the largest bird park in Asia Pacific and one of the world's finest.'); document.write('It has a collection of over 8000 birds and 600 species, probably the most extensive in the world.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); //Zoo document.write('<tr><u><b>ZOO</b></u></tr>'); document.write('<tr><td><img src="zoo.jpg"></td>'); document.write('<td><p><font face="arial">The Singapore Zoo is acclaimed for its wide range of species of animals. '); document.write('Featuring more than a hundred species of animals from all over the world,'); document.write('they are kept in beautifully decorated environments suited to each and every animal.'); document.write('The 1-hectare Primate Kingdom houses approximately 100 primates of 11 species.'); document.write('</font></p></td></tr>'); document.write('<tr><td><font size=2><i><u><a href="#top">Return to top</u></i></td></tr>'); document.write('</table>'); </script> </body> </html> |
|
#3
|
||||
|
||||
|
Quote:
__________________
If DynamicDrive was the answer, it must have been a funny question. Code:
answer = question.match(/back button|calendar|calculator|coundown timer|dynamic\s?drive|hangman|jquery|lightbox|menu|right-click|sniffer|snowflake/) ? "Dream-on sucker" : "Maybe..."; |
|
#4
|
|||
|
|||
|
Quote:
but do u c any error in my script? |
|
#5
|
||||
|
||||
|
Incorrect quotes within the document.write string
Code:
document.write('<p><font size=3 color='black' face="Arial">
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Really!
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
It can if the mistake is in the first line, but there are more mistakes.
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#10
|
|||||
|
|||||
|
Quote:
Quote:
Quote:
Quote:
Quote:
Cheers! |
|
#11
|
||||
|
||||
|
Check through the document an d take note of all changes.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>interests</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--interests.html-->
<style type="text/css">
:link { color: navy }
:visited { color: green }
:active { color: orange }
</style>
</head>
<body>
<script type="text/javascript">
document.write('<p><font size="3" color="black" face="Arial">Singapore is very well known for: the cleanest surroundings in Asia, a fascinating fusion of ');
document.write(' different cultures...and last but certainly not the least of all, great shopping! This is one of the favourite hobbies of almost all');
document.write(' Singaporeans.<\/font><\/p>');
document.write('<\/br><\/br>');
document.write('<table bgcolor="white" width="100%">');
document.write('<tr><u><b>CHINATOWN<\/b><\/u><\/tr>');
document.write('<tr><td><img src="Chinatown.jpg"><\/td>');
document.write('<td><p><font face="arial">Singapore\'s Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in');
document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.<\/br>');
document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into');
document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its');
document.write('own distinctive flavour. The heart of activity is in the Trengganu area.<\/font><\/p><\/td><\/tr>');
document.write('<tr><td><font size=2><i><u><a href="#top">Return to top<\/u><\/i><\/td><\/tr>');
<!-- Little India -->
document.write('<tr><u><b>LITTLE INDIA<\/b><\/u><\/tr>');
document.write('<tr><td><img src="lilindia.jpg"><\/td>');
document.write('<td><p><font face="arial">Singapore\'s Chinatown evolved around 1821 when the first Chinese junk arrived from Xiamen, Fujian province in');
document.write(' China. Chinatown, arose from the fact each household at that time had to collect fresh water from the wells in.<\/br>');
document.write('Ann Siang Hill and Spring Street, using bullock-drawn carts. Chinatown can be divided into');
document.write(' four main districts - Kreta Ayer, Telok Ayer, Tanjong Pagar and Bukit Pasoh - each with its');
document.write('own distinctive flavour. The heart of activity is in the Trengganu area.<\/font><\/p><\/td><\/tr>');
document.write('<tr><td><font size=2><i><u><a href="#top">Return to top<\/u><\/i><\/td><\/tr>');
<!-- Sentosa -->
document.write('<tr><u><b>SENTOSA<\/b><\/u><\/tr>');
document.write('<tr><td><img src="sentosa.jpg"><\/td>');
document.write('<td><p><font face="arial">Sentosa is a familiar name with both Singaporeans and international visitors.');
document.write('For tourists, a visit to Singapore is incomplete without at least a day on this island resort.<\/br>');
document.write('Sentosa is packed full of fun places and attractions, such as Fort Siloso, the Merlion, Musical');
document.write('Fountain, Dolphin Lagoon and Underwater World.');
document.write('<\/font><\/p><\/td><\/tr>');
document.write('<tr><td><font size=2><i><u><a href="#top">Return to top<\/u><\/i><\/td><\/tr>');
<!-- Jurong Bird Park -->
document.write('<tr><u><b>JURONG BIRD PARK<\/b><\/u><\/tr>');
document.write('<tr><td><img src="birdpark.jpg"><\/td>');
document.write('<td><p><font face="arial">Jurong Bird Park is the largest bird park in Asia Pacific and one of the world\'s finest.');
document.write('It has a collection of over 8000 birds and 600 species, probably the most extensive in the world.');
document.write('<\/font><\/p><\/td><\/tr>');
document.write('<tr><td><font size=2><i><u><a href="#top">Return to top<\/u><\/i><\/td><\/tr>');
<!-- Zoo -->
document.write('<tr><u><b>ZOO<\/b><\/u><\/tr>');
document.write('<tr><td><img src="zoo.jpg"><\/td>');
document.write('<td><p><font face="arial">The Singapore Zoo is acclaimed for its wide range of species of animals. ');
document.write('Featuring more than a hundred species of animals from all over the world,');
document.write('they are kept in beautifully decorated environments suited to each and every animal.');
document.write('The 1-hectare Primate Kingdom houses approximately 100 primates of 11 species.');
document.write('<\/font><\/p><\/td><\/tr>');
document.write('<tr><td><font size=2><i><u><a href="#top">Return to top<\/u><\/i><\/td><\/tr>');
document.write('<\/table>');
</script>
</body>
</html>
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
|
#12
|
|||
|
|||
|
what is this for?
What is this doing?
You may also want to look at the way you tried to create your tables also. document.write('</br></br>'); document.write('<table bgcolor=white width=100%>'); document.write('<tr><u><b>CHINATOWN</b></u></tr>'); document.write('<tr><td><img src="Chinatown.jpg"></td>'); |
|
#13
|
|||
|
|||
|
Quote:
|
|
#14
|
|||
|
|||
|
Quote:
|
|
#15
|
||||
|
||||
|
http://www.webreference.com/programm...ipt/diaries/2/
http://www.w3.org/TR/html4/appendix/...html#h-B.3.2.1
__________________
At least 98% of internet users' DNA is identical to that of chimpanzees |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|