/    Sign up×
Community /Pin to ProfileBookmark

External .js in Netscape

I have this exteranl script I want to load in Netscape 7.1 but it doesn’t load it.

<script language=”JavaScript” type=”text/javascript” src=”header.js”>

</script>

That’s between the <head> tags.

what is the problem, thanks!

Dennis

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@steelersfan88Mar 05.2004 — try putting an alert in the external file to see if it ever attempts to read from the file.

At this point, if it does, its not Netscape compatible, otherwise, well try and figure it out!
Copy linkTweet thisAlerts:
@fredmvMar 05.2004 — Welcome to the forums.

Are you sure it's in the same directory?
Copy linkTweet thisAlerts:
@Dennis_MauthorMar 05.2004 — [i]Originally posted by fredmv [/i]

[B]Welcome to the forums.



Are you sure it's in the same directory? [/B]
[/QUOTE]


Yes it is in the same directory.
Copy linkTweet thisAlerts:
@fredmvMar 05.2004 — Alright. Did you try what the previous poster suggested?
Copy linkTweet thisAlerts:
@Dennis_MauthorMar 05.2004 — [i]Originally posted by fredmv [/i]

[B]Alright. Did you try what the previous poster suggested? [/B][/QUOTE]


Yeah the alert worked. So i guess my code is not compatible. You guys know a good site that tells you what code is not compatible with Netscape? Since this code works with IE.
Copy linkTweet thisAlerts:
@steelersfan88Mar 05.2004 — haha (no1 'cept fred would no y i am laughing)

post the contents of the external js code
Copy linkTweet thisAlerts:
@fredmvMar 05.2004 — [i]Originally posted by steelersfan88 [/i]

[B]haha (no1 'cept fred would no y i am laughing) [/B][/QUOTE]
Yep &#8212; pretty much.[i]Originally posted by Dennis M [/i]

[B]Yeah the alert worked. So i guess my code is not compatible. You guys know a good site that tells you what code is not compatible with Netscape? Since this code works with IE.[/B][/QUOTE]
The only way we can help you further is to see the source code in which resides in the external file.
Copy linkTweet thisAlerts:
@Dennis_MauthorMar 05.2004 — /* Images*/

up1 = new Image();

up1.src = "http://bsatr155.tripod.com/eagleson.gif";

down1 = new Image();

down1.src = "http://bsatr155.tripod.com/eagles.gif";

up2 = new Image();

up2.src = "http://bsatr155.tripod.com/rosterbon.gif";

down2 = new Image();

down2.src = "http://bsatr155.tripod.com/rosterb.gif";

up3 = new Image();

up3.src = "http://bsatr155.tripod.com/activbon.gif";

down3 = new Image();

down3.src = "http://bsatr155.tripod.com/activb.gif";

up4 = new Image();

up4.src = "http://bsatr155.tripod.com/histbon.gif";

down4 = new Image();

down4.src = "http://bsatr155.tripod.com/histb.gif";

up5 = new Image();

up5.src = "http://bsatr155.tripod.com/linksbon.gif";

down5 = new Image();

down5.src = "http://bsatr155.tripod.com/linksb.gif";

up6 = new Image();

up6.src = "http://bsatr155.tripod.com/photoon.gif";

down6 = new Image();

down6.src = "http://bsatr155.tripod.com/photo.gif";

/*Top Menu flip*/

function eaglesup() {

document.eagles.src = up1.src; return true;

}

function eaglesdown() {

document.eagles.src = down1.src; return true;

}

function rosterup() {

document.roster.src = up2.src; return true;

}

function rosterdown() {

document.roster.src = down2.src; return true;

}

function actup() {

document.activities.src = up3.src; return true;

}

function actdown() {

document.activities.src = down3.src; return true;

}

function historyup() {

document.history.src = up4.src; return true;

}

function historydown() {

document.history.src = down4.src; return true;

}

function linksup() {

document.links.src = up5.src; return true;

}

function linksdown() {

document.links.src = down5.src; return true;

}

function photoup() {

document.photo.src = up6.src; return true;

}

function photodown() {

document.photo.src = down6.src; return true;

}


/*Top Menu Function*/

function flip1() {

document.write('<a href="http://bsatr155.tripod.com/eagles.html" onMouseOver="eaglesup()" onMouseOut="eaglesdown()">');

document.write('<img src="http://bsatr155.tripod.com/eagles.gif" alt="Troop 155s Eagle Scouts" border="0" name="eagles"></a>');

document.write('<a href="http://bsatr155.tripod.com/roster.html" onMouseOver="rosterup()" onMouseOut="rosterdown()">');
document.write('<img src="http://bsatr155.tripod.com/rosterb.gif" border="0" height="66" width="78" alt="Roster of Troop 155" name="roster"></a>');

document.write('<a href="http://bsatr155.tripod.com/activitiesiframe.html" onMouseOver="actup()" onMouseOut="actdown()">');
document.write('<img src="http://bsatr155.tripod.com/activb.gif" border="0" height="66" width="78" alt="Planned Activites for Troop 155" name="activities"></a>');

document.write('<a href="http://bsatr155.tripod.com/history.html" onMouseOver="historyup()" onMouseOut="historydown()">');
document.write('<img src="http://bsatr155.tripod.com/histb.gif" border="0" height="66" width="78" alt="History of Troop 155" name="history"></a>');

document.write('<a href="http://bsatr155.tripod.com/links.html" onMouseOver="linksup()" onMouseOut="linksdown()">');
document.write('<img src="http://bsatr155.tripod.com/linksb.gif" border="0" height="66" width="78" alt="Links" name="links"></a>');

document.write('<a href="http://bsatr155.tripod.com/photogallery.html" onMouseOver="photoup()" onMouseOut="photodown()">');
document.write('<img src="http://bsatr155.tripod.com/photo.gif" alt="Troop 155s Photo Gallery" width="66" height="61" border="0" name="photo"></a>');
}




/*Side Menu*/

function sidemenu() {


document.write("<div style='line-height: 17px'><a href='http://bsatr155.tripod.com/index.html' class='sidemenu' title='Home'><img src='http://bsatr155.tripod.com/patch.jpg' width='125' length='100' height='98'></a>");

document.write("<br><b><font face='Helvetica, Arial, sans-serif'>");

document.write("<a href='http://bsatr155.tripod.com/index.html' class='sidemenu2' title='Home'>");

document.write("Home</a>");

document.write("<br>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/activitiesiframe.html' class='sidemenu2' title='Troop 155s Planned Activities'>");
document.write("Activities</a></b><br><small>");
document.write("<a href='http://bsatr155.tripod.com/activitiesiframe.html' class='sidemenu' title='See List of Activities'>");
document.write("<div style='text-indent: 12px'>See List</a><br>");
document.write("<a href='http://bsatr155.tripod.com/calenderiframe.html' class='sidemenu' title='See Calendar of Activities'>");
document.write("<div style='text-indent: 12px'>See Calendar</a><br></small>");

document.write("<b>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/history.html' class='sidemenu2' title='History of Troop 155'>");
document.write("History</a></b><br><small>");
document.write("<a href='http://bsatr155.tripod.com/history.html#troophistory' class='sidemenu' title='Troops History'>");
document.write("<div style='text-indent: 12px'>Troop History</a><br>");
document.write("<a href='http://bsatr155.tripod.com/history.html#outoftrips' class='sidemenu' title='Out of Council Trips'>");
document.write("<div style='text-indent: 12px'>Out of Council <br><div style='text-indent: 12px'>Trips</a><br>");
document.write("<a href='http://bsatr155.tripod.com/history.html#fiftyeagle' class='sidemenu' title='50th Eagle'>");
document.write("<div style='text-indent: 12px'>50th Eagle</a><br>");
document.write("<a href='http://bsatr155.tripod.com/history.html#msa' class='sidemenu' title='Eagles that went to attend Military Academies'>");
document.write("<div style='text-indent: 12px'>Eagles went to <br><div style='text-indent: 12px'>Military Academies</a><br>");
document.write("<a href='http://bsatr155.tripod.com/history.html#adulttrip' class='sidemenu' title='Adult Canoe Trip'>");
document.write("<div style='text-indent: 12px'>Adult canoe trip</a><br>");
document.write("<a href='http://bsatr155.tripod.com/history.html#scoutmasterhonor' class='sidemenu' title='Milestones of Scoutmaster'>");
document.write("<div style='text-indent: 12px'>Milestones of <br><div style='text-indent: 12px'>Scoutmaster</a><br></small>");

document.write("<b>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/troopnewsiframe.html' class='sidemenu2' title='Troops News'>");
document.write("Troop News</a></b><br><small>");
document.write("<a href='http://bsatr155.tripod.com/scoutmastersiframe.html' class='sidemenu' title='Scoutmasters Corner'>");
document.write("<div style='text-indent: 12px'>Scoutmasters <br><div style='text-indent: 12px'>Corner</a><br>");
document.write("<a href='http://bsatr155.tripod.com/officersiframe.html' class='sidemenu' title='Officers Report'>");
document.write("<div style='text-indent: 12px'>Officers Report</a><br></small>");

document.write("<b>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/roster.html' class='sidemenu2' title='Troop 155s Roster'>");
document.write("Roster</a><br>");

document.write("<a href='http://bsatr155.tripod.com/eagles.html' class='sidemenu2' title='Troop 155s Eagle Scouts'>");
document.write("Eagle Scouts</a>");

document.write("<br>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/photogallery.html' class='sidemenu2' title='Troop 155s Photo Gallery'>");
document.write("Photo Gallery</b></a><br><small>");
document.write("<a href='http://bsatr155.tripod.com/localactivities/localacti.htm' class='sidemenu' title='Local Activites'>");
document.write("<div style='text-indent: 12px'>Local Activities</a><br>");
document.write("<a href='http://bsatr155.tripod.com/outofstate/outofstate.htm' class='sidemenu' title='Out of State Trips'>");
document.write("<div style='text-indent: 12px'>Out of State</a><br>");
document.write("<a href='http://bsatr155.tripod.com/partiesandeaglecourt/partiesandeagle.htm' class='sidemenu' title='Parties and Eagle Court of Honor'>");
document.write("<div style='text-indent: 12px'>Parties and Eagles<br><div style='text-indent: 12px'>Court of Honor</a><br>");
document.write("<a href='http://bsatr155.tripod.com/campics/camppics.html' class='sidemenu' title='Camp Pictures from 1958 to the present'>");
document.write("<div style='text-indent: 12px'>Camp Photos</a></small><br>");

document.write("<b>_____________<br>");

document.write("<a href='http://bsatr155.tripod.com/links.html' class='sidemenu2' title='links'>");
document.write("Links</a><br>");
document.write("<a href='http://bsatr155.tripod.com/contact.html' class='sidemenu2' title='Contact Us'>");
document.write("Contact</a></b><br></font>");

}
Copy linkTweet thisAlerts:
@fredmvMar 05.2004 — Do not make your navigation rely on JavaScript. Users in which do not have JavaScript available will not be able to navigate your site.
Copy linkTweet thisAlerts:
@steelersfan88Mar 06.2004 — if the file is being used by more than one page, it might be OK to have it in js, but if this is the only page tha relies on this, hardcode the document.write fucntions directly into the web page.

It might also be better to use docment.getElementById('img name').src. That ,ight be more compatible wit netscape, never have used it tho and wouldnt kno!
×

Success!

Help @Dennis_M spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...