Results 1 to 2 of 2

Thread: How to incorporate a Javascript link in a CSS

  1. #1
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default How to incorporate a Javascript link in a CSS

    Hi,

    on the last day of school I'd really like to have something like this on out school webpage:

    http://www.schillmania.com/projects/snowstorm/

    OK, fairly simple enough so I download the javascript and put the <script type="text/javascript" src="snowstorm.js"></script> command in my <HEAD> bit of a normal html page... no problem.

    However as my pages all use a style.css file to base their pages on, do I need to add the <script type="text/javascript" src="snowstorm.js"></script> into my style.css file?

    I'm really sorry, CSS is very new to me and I simply don't know where to put it, the css is MASSIVE so I won't include all of it here but here's the first few dozen lines or so...

    HTML Code:
    /*
    Theme Name: Big Wood School
    Theme URI: http://www.bigwood.nottingham.sch.uk
    Description: The default theme for the Big Wood School website.
    Version: 1.0
    Author URI: http://www.bigwood.nottingham.sch.uk/
    Tags: maroon, custom header, custom index, fixed width, two columns, widgets, jQuery
    
    
    	The CSS, XHTML and design is released under GPL:
    	http://www.opensource.org/licenses/gpl-license.php
    */
    
    /* Begin Typography & Colors */
    
    body {
    	font-size: 62.5%; /* Resets 1em to 10px */
    	font-family: Arial, Sans-Serif;
    	background: url('images/silvertowhite.jpg') repeat-x;
    	background-color: #ffffff;
    	color: #333333;
    	text-align: center;
    }
    
    #page {
    	text-align: left;
    	}
    
    #header {
    	background: url('images/header-background.jpg') repeat-x top left;
    	}
    
    #header-left 	{
    	width: 440px;
    	height: 139px;
    	float: left;
    	}
    
    #header-left p {
    	display: none;
    }
    
    #header-right {
    	background: none;


    Or am I barking up the totally wrong tree???


    Thanks,


    Jay Dog

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    No,they are different and should be seperate of each other.I have never heard of this(I hope there are no 'special' circumstances I am not aware of -lol

    If possible it should go at the bottom of the pages code but sometimes it has to go in the head where the css file is.
    Thanks,

    Bud

Similar Threads

  1. Replies: 1
    Last Post: 09-14-2009, 09:03 PM
  2. Replies: 6
    Last Post: 12-01-2008, 10:20 PM
  3. Replies: 1
    Last Post: 08-13-2008, 08:33 PM
  4. Incorporate 2 scipts with image map
    By kalew in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-31-2007, 02:36 PM
  5. How would I incorporate *.swf into my website???
    By sportious in forum The lounge
    Replies: 2
    Last Post: 09-18-2005, 10:24 PM

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
  •