Results 1 to 2 of 2

Thread: Image Thumbnail Viewer II - How to embed into html page itself?

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II - How to embed into html page itself?

    1) Script Title: Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem:

    Alright, tbh I don't know a whole lot about javascript itself, but from just looking at code I can usually figure stuff out. I'm making a page where I won't be able to link to an external js file. I know it's not as simple as copy pasting the contents of the js file into the <script> tag of the html code, what do I need to do for this to work? or can this not work at all?
    Last edited by tehbutch; 04-24-2009 at 12:16 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    It is actually just that simple (well almost). Just remove the source reference (highlighted) and add all the code from the external file into the tags:
    Code:
    <script type="text/javascript" src="thumbnailviewer2.js" defer="defer">
    
    /***********************************************
    * Image Thumbnail Viewer II script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    
    Script code goes here
    
    </script>
    Make sure you keep the credit notice there at the top.

    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

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
  •