Tabs are screwed up!?, Messed up tabs! |
Tabs are screwed up!?, Messed up tabs! |
zgillman |
Dec 23 2008, 01:18 AM
Post
#1
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
Can someone look at my code and see where I went wrong? Its been working fine and then I dont even mess with the code and then refresh the page and its screwed up.. if you want to know what its supposed to look like, click here and it is the first example on the page.. and the screwed up page is http://www.hawk-talk.com thanks!
|
pandy |
Dec 23 2008, 02:15 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Did you link to the right page? There is no menu at all, not even a screwed up one.
|
zgillman |
Dec 23 2008, 01:29 PM
Post
#3
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
damn, no i didnt haha http://www.hawk-talk.com/page1 sorry
and i put the page through the validator last night and got absolutely no problems, then once i refreshed it, now ive got tons! This post has been edited by zgillman: Dec 23 2008, 01:55 PM |
pandy |
Dec 23 2008, 02:04 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Well, the supposed menu script is a complete HTML page.
http://www.hawk-talk.com/page1/tabcontent.js It's also served with the content-type text/html in spite of the .js extension (should be text/javascript). If you don't have some PHP or the like in that page that writes that content type header, Apache isn't configured right. You also have two script tags calling the same tabcontent.js. |
zgillman |
Dec 23 2008, 02:12 PM
Post
#5
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
so what do i need to change? haha
|
pandy |
Dec 23 2008, 02:14 PM
Post
#6
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
You could start with finding the script.
|
zgillman |
Dec 23 2008, 02:17 PM
Post
#7
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
|
pandy |
Dec 23 2008, 02:38 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
I don't know where you've put it. Looks like it's overwritten with that HTML file. Download it again from Dynamic Drive if you haven't saved a copy.
|
pandy |
Dec 23 2008, 02:41 PM
Post
#9
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
QUOTE thats what my screen looks like on dreamweaver, i dunno whats wrong?! So you have the js file locally. Find it and upload it to the server and let's see what happens. |
zgillman |
Dec 23 2008, 02:43 PM
Post
#10
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
what 'script' am i looking for exactly? i redownloaded tabcontent.css and tabcontent.js and put them on the server, and nothing yet....
|
pandy |
Dec 23 2008, 02:48 PM
Post
#11
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
No, because on the server you have a HTML file with that name, not a script.
Click and see for yourself. http://www.hawk-talk.com/page1/tabcontent.js |
zgillman |
Dec 23 2008, 02:51 PM
Post
#12
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
i clicked up there and still dont understand why its doing that.. you saw in the screenshot that its on the server saved as tabcontent.js and its not an html page.. when i edit it, it only lets me in code mode, not design so i know its not anything i can edit
|
pandy |
Dec 23 2008, 02:55 PM
Post
#13
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Because on your computer the tabcontent.js isn't a HTML document as it is on the server.
|
zgillman |
Dec 23 2008, 02:56 PM
Post
#14
|
Member Group: Members Posts: 81 Joined: 23-December 08 From: Clarksville Tennessee Member No.: 7,389 |
ruh-roh.. i think ive got it.. i accidentally made the script invisible, when i meant to make the css sheet invisible.. lemme fix that and see what happens..
fixed yahoooooooooo! you can make them invisible, but you have to give the ability to make the files executable as scripts, and if you dont, everything goes wrong! thanks my permissions were 777 or rwxrwxrwx and i changed it to 666 or rw-rw-rw- and that means nothing is executable (scripts...) and so i changed it back to 755, or rwxr-xr-x so now it works again...haha decode that! This post has been edited by zgillman: Dec 23 2008, 03:05 PM |
pandy |
Dec 24 2008, 12:20 AM
Post
#15
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
OK, but I din't see how that could trurn the script into a HTML page.
|
Lo-Fi Version | Time is now: 19th April 2024 - 03:05 PM |