Sticky table header

To prevent the table header from scrolling off of the viewable area, use this:

<?ph drupal_add_js('misc/tableheader.js'); ?>
<table class="sticky-enabled">
<thead>
<tr><th>Head 1</th><th>Head 2</th></tr>
</thead>
<tbody>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
</tbody>
</table>

(replace ph by php; workaround for a security setting by the hosting provider)

Summary:

  • add the class "sticky-enabled" to the table
  • use drupal_add_js() to include  "misc/tableheader.js" (for modules, you can do this within hook_init())
  • use the PHP input filter if you do the include above in a node or block

 

 

I have shown a lot of

I have shown a lot of interest on your website. All of it you have written did educate me in a great way. Clogged Drain Plumber Lake Elsinore

shiprabrock

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! uckermark ferienwohnung bauernhof

mayazoe

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. How to use Multimeter

Wonderful article! I need

Wonderful article! I need individuals to know exactly how great this data is in your article. It"s fascinating, convincing substance. Your perspectives are much like my own concerning this subject. camera quan sát đà nẵng

Spotify

very nce blog...would like to continue reading spotify premium apk download cracked

Reaver

I was looking for this online...thanks for sharing this info download reaver apk

Sticky table header

super information...thanks for sharing web.whatsapp.com hack

sl786982

Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area. iTunes Alternative

laga iphone 6 stockholm

Är du hemkommen från semestern. Då jag har vi en ny iPhone 7 och kameran är väldigt bra på den så valde jag att inte köpa en ny riktigt kamera. Då jag använder min kamera flitigt och min telefon är bara några månader gammal tänkte jag inte mer på det. Kameran kan såväl som skärmen kan gå sönder, men det kan du laga i Göteborg och stockholm. Att laga iPhone i Göteborg går bra att utföra på flera butiker hos Fix My Phone. iPhone reparation i Stockholm och Göteborg är billigt och kvaliten blir exakt den samma. laga iphone 6 stockholm

vpn express

Speechless. Very accurate piece of writing. Such a sweet post. This is very nice man.  vpn express

best screen capture software

Speechless. Very accurate piece of writing. Such a sweet post. This is very nice man.  best screen capture software

Soda PDf

Speechless. Very accurate piece of writing. Such a sweet post. This is very nice man.  Soda PDf

I love you post, thank you so

I love you post, thank you so much. It always put a smile on my face. Especially good thought to apply.. I think I need to try this more! tapete akcija

Hi I found your site by

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. English to Spanish translation services

jutoh

Speechless. Very accurate piece of writing. Such a sweet post. This is very nice man.  jutoh

passware kit

I really like your style. This is too positive and constructive. This site is amazing. Amazing stuff. Keep doing this man. passware kit

Hi I found your site by

Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. http://www.teamlucas.dk/gode-kostumer-blandt-andet-oktoberfest-kostumer/

This particular is usually

This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… copyright registration india

Really great post, Thank you

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up! john lewis flowers direct

sl786982

Well, I just thought it may be an idea to post in case anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on here. lotto belgium

sl786982

This is a stunning post I seen by giganticness of offer it. It is genuinely what I foreseen that would see confide in future you will continue in sharing such a striking post. copyright registration or copyright registration india

This is a stunning post I

This is a stunning post I seen by giganticness of offer it. It is genuinely what I foreseen that would see confide in future you will continue in sharing such a striking post. reach success

mayazoe

Get online trademark registration in India in just 2 days easy fast and secure. Now register your Trademark at affordable cost of Rs 5800 with No hidden charges - unlike others.

mayazoe

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! privacy

I experience considerable

I experience considerable difficulties my musings on substance, yet I truly felt I ought to here. Your article is truly extraordinary. I like the way you composed this data sebastien lasserre

sl786982

It is additionally a really sensible post that I actually enjoyed reading. it’s not every day that I actually have the chance to examine one thing like this. One hour payday loans direct lender

sl786982

It is additionally a really sensible post that I actually enjoyed reading. it’s not every day that I actually have the chance to examine one thing like this. One hour payday loans direct lender

second hand car japan

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! japanese used car exporters dealers

As the power of PageRank is

As the power of PageRank is getting lower, flow metrics matter. Google gives a huge importance to metrics like domain authority, trust flow or citation flow as a ranking factor. funny prank

shiprabrock

Hey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it? salute e sicurezza sul lavoro

shiprabrock

Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. Certificazioni qualità Rimini

johncarter2038

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. Certificazioni qualità Verona

Nielsen Discount

This article clears my mind. Writer has done great job. Best thing about this blog is its simplicity. Thank you so much. Keep posting Nielsen Discount

johncarter2038

Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it. can't compare to those found on whatsthebestbed

utilize whatsthebestbed if you have questions

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! utilize whatsthebestbed if you have questions

utilize whatsthebestbed if you have questions

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! utilize whatsthebestbed if you have questions

johncarter2038

I read this article. I think You put a lot of effort to create this article. I appreciate your work. cushion from thebest-mattress

I feel like I’m constantly

I feel like I’m constantly looking for interesting things to read about a variety of subjects, but I manage to include your blog among my reads every day because you have compelling entries that I look forward to. Here’s hoping there’s a lot more amazing material coming! Raw urls

johncarter2038

Hey, great blog, but I don’t understand how to add your site in my rss reader. Can you Help me please? chatroom for website

johncarter2038

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. chat room for website

johncarter2038

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! customize your sleep experience

sl786982

Wow what a Great Information about World Day its exceptionally pleasant educational post. a debt of gratitude is in order for the post. Clash Royale Gold & Gems Generator

shiprabrock

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . concave wheels

Find A Tradesman

wow this good but ,I like your post and good pics may be any peoples not like because defrent mind all poeple , Find A Tradesman

online marketing

Speechless. Very accurate piece of writing. Such a sweet post. This is very nice man.  online marketing

There are so many churches

There are so many churches around the world. And I can read the information from this site. brokers in singapore

johncarter2038

Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first”. seo pricing

sl786982

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Nespresso Milk Frother

sl786982

I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job! In my free time, I like play game: electric milk frother 

sl786982

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! handheld frother