Results 1 to 3 of 3

Thread: 2 .js in in 1 page

  1. #1
    Join Date
    Oct 2007
    Location
    Finland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation 2 .js in in 1 page

    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>
    Last edited by natakene; 10-06-2007 at 05:58 PM.

  2. #2
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    HTML Code:
    <head>
    <title>My Page</title>
    <script type="text/javascript" src="script1.js"></script>
    <script type="text/javascript" src="script2.js"></script>
    </head>
    Trinithis

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Last edited by djr33; 10-06-2007 at 07:46 PM.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •