PDA

View Full Version : Problem with Javascript?


rockinaway
01-03-2009, 07:25 PM
I am using niftycube on my forum: http://www.adminfuel.com

As you go to the forum, you can see the sidebar is using it.. and all works fine UNTIL you go onto the showthread.php area, none of the boxes work. Why?

TimberFloorAu
01-03-2009, 07:56 PM
great job, looks NICE.

Seems to be a css issue , not sure how or why tho, ive never wrapped div style on threadview.

Have you checked main.css is calling the left and right image properly for threadview?

rockinaway
01-03-2009, 08:06 PM
What do you mean left and right image?

TimberFloorAu
01-03-2009, 08:36 PM
on niftycube ( presuming nifty corners )

Arent the boxes created in css, using left and right image

Some of Niftys boxes are created in css with topleft topright bottomleft bottomright

http://www.html.it/articoli/niftycube/index.html

I have used it before, but been a long time.

rockinaway
01-03-2009, 09:05 PM
No, it is all created through javascript, only the colours are set through CSS.

TimberFloorAu
01-03-2009, 09:12 PM
The js initiates small css file.

http://www.html.it/articoli/nifty/screenCodice.html

The above link is css to create a box.

rockinaway
01-04-2009, 02:25 PM
I still don't understand what you are getting at. It works fine on every other page, so what could be wrong?

--------------- Added 1231088097 at 1231088097 ---------------

Okay, on other pages, but not showthread, this is being included by itself at the bottom of the head:

<link type="text/css" rel="stylesheet" href="niftyCorners.css" media="screen">

but I don't know where I have added it.. :S

--------------- Added 1231088583 at 1231088583 ---------------

Right.. in the .js file, it adds the CSS line shown above.., but it won't add it when showthread.php is called :S