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.
|
|
|
|
|
![]() |
||
.js file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
.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
|
||||
|
||||
|
Hi Sarah...
It seems you've forgot to reference the JS file in your html. you need something like this:-
Bingo!!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
just copy exactly what i wrote into the head section (at the end of head section)
replace myfile.js with whatever you called it.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#5
|
|||
|
|||
|
Thanks!
|
|
#6
|
|||
|
|||
|
Rob, its still not working... may I paste the code? :sad:
|
|
#7
|
||||
|
||||
|
sure.... paste your head section, and the .js file
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#8
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#10
|
||||
|
||||
|
doesnt the script source link file have to be in the main head section of the page?
|
|
#11
|
||||
|
||||
|
doesnt the script source link file have to be in the main head section of the page?
|
|
#12
|
||||
|
||||
|
I think this is all sorted now Benbacardi.
I'm locking this thread.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| file |
| Thread Tools | |
|
|
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 |