PDA

View Full Version : 2 .js in in 1 page



natakene
10-06-2007, 05:53 PM
How to put two .js in 1 page to join scrolling images and their loadinarea?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1251"><LINK
href="gallerystyle.css" type=text/css rel=stylesheet><!-- Do not edit IE conditional style below --><!--[if gte IE 5.5]>
<STYLE type=text/css>#motioncontainer {

}
</STYLE>
<![endif]--><!-- End Conditional Style -->
<SCRIPT > src="motiongallery.js" and src="thumbnailviewer2.js" < type=text/javascript>

</SCRIPT>

<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV align=center>
<DIV id=motioncontainer style="OVERFLOW: hidden; POSITION: relative">
<DIV align=center>
<DIV id=motiongallery
style="LEFT: 0px; WHITE-SPACE: nowrap; POSITION: absolute; TOP: 0px">
<DIV align=left><NOBR id=trueContainer><A href="dynamicbook1.gif" rev=loadarea2
rel=enlargeimage::click><IMG src="dynamicbook1.gif" border=1></A> <A
href="#"><IMG src="dynamicbook1.gif" border=1></A> <A href="#"><IMG
src="dynamicbook1.gif" border=1></A> <A href="#"><IMG src="dynamicbook1.gif"
border=1></A> <A href="#"><IMG src="dynamicbook1.gif" border=1></A> <A
href="#"><IMG src="dynamicbook1.gif" border=1></A> <A href="#"><IMG
src="dynamicbook1.gif" border=1></A> <A href="#"><IMG src="dynamicbook1.gif"
border=1></A> <A href="#"><IMG src="dynamicbook1.gif" border=1></A> <A
href="#"><IMG src="dynamicbook1.gif" border=1></A> <A href="#"><IMG
src="dynamicbook1.gif" border=1></A></NOBR>
</DIV></DIV></DIV></DIV></DIV><BR><BR>
<DIV align=center>
<DIV id=loadarea2 style="WIDTH: 600px">
<DIV align=left>&nbsp;</DIV></DIV></DIV></BODY></HTML>

Trinithis
10-06-2007, 07:16 PM
<head>
<title>My Page</title>
<script type="text/javascript" src="script1.js"></script>
<script type="text/javascript" src="script2.js"></script>
</head>

djr33
10-06-2007, 07:28 PM
If there is a conflict, it will be overlapping function and/or variable names (or reactions to events, like onLoad). If so, it's not too hard to fix.