Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16601

Re: Scroll a <table> Up/Down a bit ?

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" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: Scroll a <table> Up/Down a bit ?
Date Sat, 13 Oct 2012 10:10:05 -0600
Lines 48
Message-ID <adti32FbrrfU1@mid.individual.net> (permalink)
References <adr268Fp05cU1@mid.individual.net> <0e3f9c4e-50b4-4302-8143-dff4a1f090a2@googlegroups.com> <adr84aFqcfhU1@mid.individual.net> <0684d4f7-e3cb-48fc-a72e-8deffe2766a6@googlegroups.com> <adrfemFs3h4U1@mid.individual.net>
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

Show key headers only | View raw


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 ;
}
***************************************




Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 11:26 -0600
  Re: Scroll a <table> Up/Down a bit ? Danny <dann90038@gmail.com> - 2012-10-12 11:07 -0700
    Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 13:07 -0600
      Re: Scroll a <table> Up/Down a bit ? Danny <dann90038@gmail.com> - 2012-10-12 13:04 -0700
        Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 15:12 -0600
          Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-13 10:10 -0600
    Re: Scroll a <table> Up/Down a bit ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-12 21:08 +0200
  Re: Scroll a <table> Up/Down a bit ? Dr J R Stockton <reply1241@merlyn.demon.co.uk.invalid> - 2012-10-13 19:42 +0100
    Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-14 08:45 -0600

csiph-web