Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts

    Java breaks on one page only

    I am trying to get a site working that some hack developed. Got it nearly operational, except for one page, the down arrows do not work. They fire via javascript. It is just a hover and scroll deal. The java gets loaded the same for every page, but it breaks on this one.

    I am decent with some coding, but I know I am light years behind the smart people in this forum, especially when it comes to java. I really could use a hand. Thanks

    Working scroll:
    http://66.147.244.241/~finalco1/inde...mation-fm.html

    The broken scroller:
    http://66.147.244.241/~finalco1/inde...act-us-fm.html
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    The div element 'lyr1' that occurs before the little arrows has different attributes for the working and non-working versions:
    Code:
    <div id="lyr1" style="position: absolute; left: 0px; top: -117px; visibility: visible;">
    I would amend your non-working version to these settings - I suspect 'position: absolute;' is the significant difference between the two versions.

    BTW: You are likely to receive more assistance if you refer to JavaScript (not Java)

  • #3
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts
    Wow. What a great catch. Too bad that didn't do it. I did notice that the javascript shows as one line in the non working version, and multiple lines in the working versions.

    Off to fix that....
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"

  • #4
    Regular Coder boogily's Avatar
    Join Date
    Jul 2009
    Posts
    275
    Thanks
    18
    Thanked 4 Times in 4 Posts
    That did it! It was squished to one line, and the comments screwed things up
    Joomla Development Company and MN SEO
    "Joomla development from design to SEO"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •