473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

load a .js file

Hi

I have a java script nav button bar where i preload images in each page
header. I do i reference .js file with the preload scrip. Below is what
i currently have
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var image1 = new Image();
image1.src = "http://mydomain/buttons/home1.gif";
var image2 = new Image();
image2.src = "http://mydomain/buttons/home1a.gif";
var image3 = new Image();
image3.src = "http://maydomain/buttons/about1.gif";
var image4 = new Image();
image4.src = "http://maydomain/buttons/about1a.gif";
..
..
..
etc.
Regards

mark

Jul 23 '05 #1
1 1339
"kidsoftuk" <ki*****@dsl.pipex.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hi

I have a java script nav button bar where i preload images in each page
header. I do i reference .js file with the preload scrip. Below is what
i currently have
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var image1 = new Image();
image1.src = "http://mydomain/buttons/home1.gif";
var image2 = new Image();
image2.src = "http://mydomain/buttons/home1a.gif";
var image3 = new Image();
image3.src = "http://maydomain/buttons/about1.gif";
var image4 = new Image();
image4.src = "http://maydomain/buttons/about1a.gif";
.
.
.
etc.
Regards

mark


Do you have a question?

Anyway, you should change lines:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
and
-->
</SCRIPT>
to:
<script type="text/javascript">
and
</script>
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ray in HK | last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason...
4
by: andrewcw | last post by:
I am moving some code forward from .NET 1.1. I was able to load the XSL file and perform the transform. The MSDN documentation looks like it should be easy. But I get a compile error. Ideas ?...
11
by: sonajain | last post by:
Hi, The database transaction log file is full. I cannot delete the log file. when I try to take backup it throws error. Any other way so that I can write more transaction without any problem....
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
13
by: rdudejr | last post by:
Hi all, I hardly ever make a post unless I am having a very purplexing issue, so this one should be good... I am trying to do a load against a database on an AIX server into a DB2 v9.1...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.