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

 

 

Hahahaha, what a comic this

Hahahaha, what a comic this YouTube record is! We are still laughing, thanks to admin who had posted at this web page. miracosta blackboard

sl786982

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. http://www.indigo.co

asad

Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article. google apps shortcuts

I wanted to thank you for

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Friv 3

sl786982

wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. Svetleci kondomi

sl786982

Much obliged for posting this information. I simply need to tell you that I simply look at your site and I discover it exceptionally fascinating and educational. I can hardly wait to peruse bunches of your posts. BuyPhen375GNC

digitinc

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. hamptonbaycabinets.net

mayazoe

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

Positive site, where did u

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Accountants Crawley

temple run game I want you to

temple run game I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!

I researed valuable

I researed valuable information on this point as I am working on a class project. Thank you posting useful information and its now becoming easier to accomplish this task. perido key fishing

webmusic.in

Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article. webmusic.in

digitinc

Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. مركز لعلاج الادمان

Really nice and interesting

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. 4kcomputermonitor.com

best l shaped computer desk

Thanks for the best blog. It was very useful for me, keep sharing such ideas in the future as well These L shaped computer desks are also a very practical way of saving space and also increase its storage capacity. Due to its shapes, the L shaped desk are best fitted into the each corner of a room in the office or at home

This is my first time go to

This is my first time go to see at here and i am genuinely pleassant to read everthing at one place. www.doctorcaron.com

https://www.9597.tw

new dora games Thanks for

new dora games Thanks for ones marvelous posting! I genuinely enjoyed reading it, you are a great author. I will be sure to bookmark your blog and may come back very soon. I want to encourage you to definitely continue your great job, have a nice weekend.

Took me time to read all the

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! شركة نقل عفش بالاحساء

digitinc

I am also interested in this topic. I have spent a lot of time on searching this kind of topic. It is very informative. anna university student login portal

I’m happy Many thanks for the

I’m happy Many thanks for the exciting blog posting! Simply put your blog post to my favorite blog list and will look forward for additional updates. Simply wanted to write down a word in order to say thanks to you for those wonderful tips. doraemon games

There are so many churches

There are so many churches around the world. And I can read the information from this site. Roadrunner customer Service phone number

digitinc

This article is such a pleasant and intriguing one, I'm exceptionally happy with the given substance. I trust more fantastic articles would be posted in your site. Much thanks to you such a great amount for this and continue sharing. https://www.trustbrokergroup.com forex daily analysis

I discovered your site ideal

I discovered your site ideal for me. It consists of wonderful and useful posts. I've read many of them and also got so much from them. In my experience, you do the truly amazing.Truly i'm impressed out of this publish run4

I am definitely enjoying your

I am definitely enjoying your website. You definitely have some great insight and great stories. Canada Goose Sale

digitinc

I am happy to find this post Very useful for me, as it contains lot of information. I Always prefer to read The Quality and glad I found this thing in you post. https://activeweb.co.za/ free business directory

Thank you for the sensible

Thank you for the sensible critique. Me & my neighbour were preparing to do some research about that. We got a good book on that matter from our local library and most books where not as influensive as your information Scary Halloween costumes

I found so many interesting

I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... www.icechestguide.com

seo

Such a very useful article. Very interesting to read this article. I would like to thank you for the efforts you had made for writing this awesome article. seo

t rex game Really nice and

t rex game Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one.

This was truly a fascinating

This was truly a fascinating subject and I kinda concur with what you have specified here! đất nền hưng thịnh

digitinc

Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. It should be really useful for all of us. khatrimaza

Excellent and very exciting

Excellent and very exciting site. Love to watch. Keep Rocking. Billionaire Boys Club Sale

That's what makes you the

That's what makes you the best. You should keep publishing more articles and you will Such Become One of the best writers ever motu patlu

Plastic bags CT Packaging

Plastic bags CT Packaging has a factory in Killarney Gardens, Cape Town and has been catering to the packaging industry.Cape Town Packaging manufacture plastic bags – affordable plastic tubing, plastic sheeting and plastic rolls affordable business.

I found so many interesting

I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... Water Bottle Copper

download free arabic fonts

Very good write-up. I certainly love this website. Thanks! to download free arabic fonts visit this site http://www.arabicfontsdownload.com/

digitinc

Very informative and understandable. I think this is an informative post and it is very useful and knowledgeable. I hope you will continue posting new article! http://kingoroot.download/

Very nice article, I enjoyed

Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. road cycling tips

This is my first time visit

This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: opportunity to view videos

Asking questions are truly

Asking questions are truly fastidious thing if you are not understanding something completely, except this piece of writing gives fastidious understanding yet. Ashley

Gulet Charter Croatia

This was nice and impressive post i read it and it was incredible thank you so much for sharing this kind of info with us you are so good and amazing with your work. I appreciate that thank you. Gulet Charter Croatia

Wonderful blog post. This is

Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up! Judi Togel

Great articles and great

Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. college term paper

Yes i am totally agreed with

Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! blog

content writing agency Kolkata

content writing company in Kolkata that offers high quality content writing service in Kolkata, blogging about some recent interesting topics, reviewing products in Amazons or movies and also marketing it, creating Infographic, affiliate marketing, SEO, SMO, SEO service in Kolkata and many more http://abhishekchatterjee.org/ http://abhishekchatterjee.org/content-writing/

intraday tips for tomorrow

It’s very informative site. Will visit again this site., for Share market tips and for intraday tips for tomorrow visit this site https://moneyclassicresearch.com/stock-market-tips.php

reviewfantasy

here we are providing you the philips trimmer pricelist

Servant of boxer brother

Servant of boxer brother stays at Motu Patlu's house for a while. He takes advantage of Motu Patlu's motu patlu

http://www.bv987.com Incredi

http://www.bv987.com Incredible posting this is from you. I am really and truly thrilled to read this marvelous post. You've really impressed me today. I hope you'll continue to do so! Judi Bola