JavaScript Question

Discussion in 'JavaScript' started by kfir_Frr, Feb 26, 2013.

  1. #1
    This site Containing smoothing effect (smooth) links within the page. And Gallery (ad-gallery).
    Somehow these two elements collide each other and dont work together.
    When leveling works first gallery images disappear.
    You can take a look and tell me why?
    To turn off smoothing (smooth) just remove the following line from index.html
    <script type="text/javascript" src="js/smooth.scroll.js"> </ script>

    Sorry but I can not upload the site here he increases (it weighs 3 MB) so the download address is in the file that i attached here.

    Thank you in advance ...
     

    Attached Files:

    Last edited: Feb 26, 2013
    kfir_Frr, Feb 26, 2013 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    My advice -- forget the inaccessible smooth scroll nonsense and stuffing too much **** onto one page. Your massive image count will end up so painful to load when you stop having placeholders, that the broken/stupid/inaccessible/garbage 'gee ain't it neat' smooth scrolling nonsense -- no matter how cute or neat it is, will make people not want to visit or use your resultant site in the first place. Break that into multiple separate pages. Pageloads aren't evil, no matter how much your script-tards will try and tell you otherwise.

    I'm not sure what 'gallery' script you're even trying to use there which would conflict, but it REALLY looks like a lot of the site is an inaccessilbe train wreck laundry list of how not to build a page -- so scripts not working is hardly a shock. Apart from the usual "HTML 3.2 code with 5's lip service slapped on it" the nonsensical/broken element nestings, pointless extra div and allegedly semantic "5" containers for nothing, gibberish use of numbered headings, no real planning for images off graceful degradation, nonsensical bandwidth wasting use of the rel attribute, etc, etc... really means that to me, throwing more code at it in the form of javascript is the LAST thing you should be doing to it right now.
     
    deathshadow, Feb 26, 2013 IP