Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16601
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Scroll a <table> Up/Down a bit ? |
| Date | 2012-10-13 10:10 -0600 |
| 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> |
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
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