ThemeForest

Making Nivo Slider Ignore Divs?

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

Hello,

I am coding a site for a client which you can see works fine here:

http://dev.evaske.com/Marjolijn/

If you watch long enough, you will see it process the two images in the code and then there is a big delay as it tries to process the divs that are also in the slider div. These are floated divs for the menu and logo holder. I did make it so that the entire nivo slider was inside another div, which removed the problem of it looking at the other divs but then this meant that menu wouldn’t show in IE6 because of the Z-Index error it has.

Does anyone know how I can make the Nivo slider ignore divs with a certain class so that it only processes the images and not the divs.

Hopefully that made sense!

Regards :)

886 posts It's in the pipeline!
  • Elite Author
  • Has been a member for 4-5 years
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
  • Exclusive Author
  • Microlancer Beta Tester
  • Author had a Free File of the Month
+2 more
purethemes says

I think you need to change your page structure and stop supporting IE6 , that browser is dead!

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

It may well be dead… but the client asked for it .

807 posts
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Won a Competition
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Bought between 10 and 49 items
+2 more
mixey says

It may well be dead… but the client asked for it .

I hope you are getting a paycheck for a sum at least with 5 zeros in it :) $x00 000

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

If someone could just tell me a way to make NivoSlider ignore everything that has a certain class then it wouldn’t be an issue and it’d all work with IE6 :P

2849 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 more
sevenspark moderator says

Well, there’s no easy (supported) way to do that. You’d have to change the Nivo JS itself. From Nivo:

Note that only images or images wrapped in links are allowed in the slider div. Any other HTML will break the slider.

I think your best bet is to try to fix the z-index error in IE6 . Applying position:relative (or absolute) and a z-index to the appropriate divs usually solves this issue.

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

Well, there’s no easy (supported) way to do that. You’d have to change the Nivo JS itself. From Nivo:
Note that only images or images wrapped in links are allowed in the slider div. Any other HTML will break the slider.
I think your best bet is to try to fix the z-index error in IE6 . Applying position:relative (or absolute) and a z-index to the appropriate divs usually solves this issue.

That’s where the problem arises with the position:absolute and the z-index. This is an error with IE6 that I just can’t find a solution to :(

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

I think I’ve fixed it….

I ended up using the SuperSleight JQuery to do with PNG transparency and this just seemed to fix the issue….

Can someone confirm for me in IE6 that the slider buttons work etc? :D

1076 posts
  • Elite Author
  • Has been a member for 4-5 years
  • Author had a Free File of the Month
  • Sold between 100 000 and 250 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Referred between 200 and 499 users
+1 more
fuelthemes says

I had the same problem here: http://setinstone.turkhitbox.com/

Add the div ’s using javascript :D

219 posts
  • Sold between 5 000 and 10 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • United Kingdom
evaske says

It worked in the end by not having the DIVs inside the slider, using the position:relative/absolute and then using the transparency fix for IE6 :)

by
by
by
by
by