Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Scroll a Up/Down a bit ? Date: Sat, 13 Oct 2012 10:10:05 -0600 Lines: 48 Message-ID: References: <0e3f9c4e-50b4-4302-8143-dff4a1f090a2@googlegroups.com> <0684d4f7-e3cb-48fc-a72e-8deffe2766a6@googlegroups.com> X-Trace: individual.net HEa6nt5oTKtyAiBH2u7tTgwbquUFZOiYdANVLBoU88VEpyr5q5fLXdyo7BGUIsSC26 Cancel-Lock: sha1:qC8Af22bL1zShD5qYhu4BRSwafw= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Xref: csiph.com comp.lang.javascript:16601 Danny said: >> PARENTOFELEMENT.scrollTop+=10; // to scroll that many pixels >> check example at -> http://www.webdevout.net/test?04k&raw > > Hi Danny: > > Thak you, I'll try that over the weekend. > > -Mel > Hi Danny: It worked great !! I've put my actual code below. Thank you ! -Mel Smith ******* code to bring listing into wiew, then vertically position it better *** function liteup(nmlsid) { var mlsid= nmlsid.toString() ; var gmlsid = "G"+mlsid ; var gmlsobj = document.getElementById(gmlsid) ; gmlsobj.scrollIntoView() ; // rough positioning // lite up the address first gmlsobj.style.background="blue" ; gmlsobj.style.color="white" ; // now liteup the mls number var mlsobj = document.getElementById(mlsid) ; mlsobj.style.background="blue" ; mlsobj.style.color="white" ; // now move the table/row/cell down a bit //This next is from Danny document.getElementById("listings").scrollTop -= 36; // Thanks Danny ! return true ; } ***************************************