JS Hack question

brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
Dev I think you set me up with this code to keep the slideshow from playing on pages other than I want...
if (YD.hasClass(document.body,"homepage") && !YD.hasClass(document.body,"featured"))

I got a PM today to let me know that it's playing in the background on this page... featured gallery but only in Opera...

Is there a fix except to set it to display:none for that gallery?
I know, Opera doesn't support Opera does it?

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited August 6, 2007
    I know, Opera doesn't support Opera does it?

    headscratch.gif
    David Parry
    SmugMug API Developer
    My Photos
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 6, 2007
    devbobo wrote:
    headscratch.gif
    sorry. I meant SM does not support Opera... Got distracted...
    Also meant JS, could not change that...
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 6, 2007
    devbobo wrote:
    headscratch.gif
    another issue in Opera, not sure you can help...
    homepage slide show is clickable in FF and IE6/7 to enter my site, but won't click in Opera...
    Have you ever seen this hack for Opera?
    This hack filters Opera (9 and below) and targets all modern browsers including IE7:
    /* selects body element with class page-body in IE7 & all modern browsers except Opera 9 & below */
    body[class|="page-body"] {} 
    						
    Conversely, this hack targets Opera 9 and below:
    /* targets Opera 9 & below - valid CSS */
    html:first-child {}
    

    If so I'm not sure how to use them, can you assist me...
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited August 6, 2007
    sorry. I meant SM does not support Opera...

    Right.

    Our officially supported browsers are IE6, IE7, FF, and Safari.
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited August 6, 2007
    Andy wrote:
    Right.

    Our officially supported browsers are IE6, IE7, FF, and Safari.
    OK, well maybe Dev can still give me some insights when he gets in.... then I'll putts on it...
Sign In or Register to comment.