![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Since I have retired and became disabled, I've started sharpening my programming skills again in Javascript. To date, I have had no problems in writing Javascript inline code. The use of external files (*.js) has bombed. Viewing the Web access_log indicated nothing it accessed from the .js file. My .js file is a generated file, containing just a few lines like: img src="Embossed-1.png" width=30 height=35 alt="0" / img src="Embossed-6.png" width=30 height=35 alt="0" / img src="Embossed-5.png" width=30 height=35 alt="0" / img src="Embossed-4.png" width=30 height=35 alt="0" / img src="Embossed-4.png" width=30 height=35 alt="0" / img src="Embossed-7.png" width=30 height=35 alt="0" / I've also tried writing a function that called "document.write", but no difference. Here is an excerpt from my Web page calling my .js file: br script type="text/javascript" src=./number.js></SCRIPT br I think I need a refresher on External JaveScript Files. Can someone help? |
#3
| |||
| |||
|
|
"); document.write("<img src=\"Embossed-6.png\" width=30 height=35 "); document.write("<img src=\"Embossed-5.png\" width=30 height=35 "); document.write("<img src=\"Embossed-4.png\" width=30 height=35 "); document.write("<img src=\"Embossed-4.png\" width=30 height=35 "); document.write("<img src=\"Embossed-7.png\" width=30 height=35 "); document.close() |
|
"); document.write("<img src=\"Embossed-6.png\" width=30 height=35 "); document.write("<img src=\"Embossed-5.png\" width=30 height=35 "); document.write("<img src=\"Embossed-4.png\" width=30 height=35 "); document.write("<img src=\"Embossed-4.png\" width=30 height=35 "); document.write("<img src=\"Embossed-7.png\" width=30 height=35 "); document.close() |
|
Newsdemon.com wrote: Since I have retired and became disabled, I've started sharpening my programming skills again in Javascript. To date, I have had no problems in writing Javascript inline code. The use of external files (*.js) has bombed. Viewing the Web access_log indicated nothing it accessed from the .js file. My .js file is a generated file, containing just a few lines like: img src="Embossed-1.png" width=30 height=35 alt="0" / img src="Embossed-6.png" width=30 height=35 alt="0" / img src="Embossed-5.png" width=30 height=35 alt="0" / img src="Embossed-4.png" width=30 height=35 alt="0" / img src="Embossed-4.png" width=30 height=35 alt="0" / img src="Embossed-7.png" width=30 height=35 alt="0" / I've also tried writing a function that called "document.write", but no difference. Here is an excerpt from my Web page calling my .js file: br script type="text/javascript" src=./number.js></SCRIPT br I think I need a refresher on External JaveScript Files. Can someone help? Another day ...... I have changed my numbers.js file too be: SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" function putnums() { document.write('<img src="Embossed-1.png" width=30 height=35 />'); document.write('<img src="Embossed-6.png" width=30 height=35 />'); document.write('<img src="Embossed-5.png" width=30 height=35 />'); document.write('<img src="Embossed-4.png" width=30 height=35 />'); document.write('<img src="Embossed-4.png" width=30 height=35 />'); document.write('<img src="Embossed-7.png" width=30 height=35 />'); } putnums(); /SCRIPT Can anyone figure what is wrong with this code? Is the name of a file on the <SCRIPT...SRC=" "> work like an included file in C language. |
![]() |
| Thread Tools | |
| Display Modes | |
| |