javascript - Text breaks inside slidetoggle JS element -
i have problem on website http://riskby.com/features/
if scroll down bit, , click on myriskby menu-element, text looks this:
here js:
;(function ($) { $("#text-6").css({ "display": "none" }); $('#menu-item-990 a').click(function (event) { $('#text-6').slidetoggle("fast"); }); $('#text-6').click(function (e) { e.stoppropagation(); }); $(document).click(function () { $('#text-6').slideup(); }); $(window).scroll(function () { var = 1; var pos = $(window).scrolltop(); if (pos > a) { $("#text-6").css({ position: 'fixed', top: '45px' }); } else { $("#text-6").css({ position: 'fixed', top: '89px' }); } }); })(jquery);
can prevent happening somehow?
status far: still no solution found this. text-breaking happens when scroll down bit first, clicking on myriskby... wrong js maybe? every answer appreciated! thanks!
alright, found solution:
change position
fixed
absolute
. relatively simple ;). works on computer now.
hope can else in future.
Comments
Post a Comment