.js file

This is a discussion on ".js file" within the JavaScript Forum section. This forum, and the thread ".js file are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 27th, 2004, 17:52
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
.js file

Hi all,

I put my javascript in a myscripts.js file as Rob kindly suggested but now I have lost the rollover effect on my buttons.

Can anyone help.

Thanks in advance

Sarah x

  #2 (permalink)  
Old Jan 27th, 2004, 18:25
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Hi Sarah...

It seems you've forgot to reference the JS file in your html.

you need something like this:-
Code: Select all
<script src="myfile.js"></script>
replace myfile.js with whatever you called it.

Bingo!!
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
Old Jan 27th, 2004, 18:41
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rob, sorry, what does the src mean in the script, and where would I put the script you have mentioned, I am not very good with html as you can tell
  #4 (permalink)  
Old Jan 27th, 2004, 19:16
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
just copy exactly what i wrote into the head section (at the end of head section)

replace myfile.js with whatever you called it.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #5 (permalink)  
Old Jan 27th, 2004, 19:25
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks!
  #6 (permalink)  
Old Jan 27th, 2004, 19:28
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rob, its still not working... may I paste the code? :sad:
  #7 (permalink)  
Old Jan 27th, 2004, 20:08
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
sure.... paste your head section, and the .js file
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #8 (permalink)  
Old Jan 27th, 2004, 20:15
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
I think this is it

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Wedding Web site Design, Business and Special Occasion Websites</title>
<meta name="description" content="Wedding Web site Design specialises in Wedding, Special Occasion and Business Web Site Design

We undertake all types of small business, wedding and special occasion website design
and our service is second to none.

We are based in Essex, UK, and our client base is nationwide.

Our prices are fixed for small businesses. We can also re-design your current websites
to your requirements regarding, layout, colours, fonts and functionality.

We have put together some samples Wedding Websites to give you an idea of designs
and layouts we can use. There are only a guide, if you have your own idea of layout,
colours and styles, please contact us as we are only too happy to accommodate you. ">
</head>

<meta name="keywords" content="Wedding Web site Design, wedding web design, wedding web page design, wedding website, web site, pages, wedding, websites,
web sites, special occasions, party site, party website, business website,
business design">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="myfile.js"></script>
</head>

<body bgcolor="#E2C8C7" onLoad="MM_preloadImages('buttons/homedown.gif','buttons/ourportfoliodown.gif','buttons/designlayoutdown.gif','buttons/testimonialsdown.gif','buttons/samplewebsitesdown.gif','buttons/priceguidedown.gif','buttons/contactusdown.gif','buttons/galaxylinksdown.gif')">
<table border="0">
<tr>
<td>

</td>
</tr>
  #9 (permalink)  
Old Jan 29th, 2004, 09:36
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
why do you have two <head> tags?

Also, your meta description really shoul all be on one line, and it's still about 200 - 300% too long.
You have javascript code within a table cell that is not encapsulated with script tags...

Best thing to do would be to email me a zip file with everything working, so I can sort out your homepage.... you can then look at that to see how to do it.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #10 (permalink)  
Old Feb 24th, 2004, 19:33
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
doesnt the script source link file have to be in the main head section of the page?
  #11 (permalink)  
Old Feb 24th, 2004, 19:36
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
doesnt the script source link file have to be in the main head section of the page?
  #12 (permalink)  
Old Feb 24th, 2004, 19:40
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
I think this is all sorted now Benbacardi.

I'm locking this thread.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
file

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I use a:hover within a html file (without the css file) heyo Web Page Design 2 Mar 5th, 2007 22:50
file.com Compumaniac12 Free Web Site Critique 10 Nov 19th, 2006 05:52
Creating a log file (text file) and an XML file using XSL kdelacruz Other Programming Languages 1 Nov 4th, 2006 21:12
eps file help ppgpilot Graphics and 3D 14 Jul 12th, 2006 19:06
How make Word file same as html file in ASP humair Classic ASP 5 Sep 24th, 2003 14:35


All times are GMT. The time now is 00:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43