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

 

 

This is my first visit to

This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. http://www.miraclepianist.com/let-me-watch-this/

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... Diwali greetings images

This was truly a fascinating

This was truly a fascinating subject and I kinda concur with what you have specified here! ΤΣΑΝΤΕΣ ΓΥΝΑΙΚΕΙΕΣ ΤΙΜΕΣ

I am always searching online

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job! Buy Instagram followers

Excellent article. Very

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. IDM 6.18 BUILD 5 FINAL FULL VERSION FREE

I really enjoy simply reading

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. CashAdvanceLoans

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… toiletry bag

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! Halstedhus

We are really grateful for

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. sleepwear

NEB 12th Exam Resul

This is also a very good post which I really enjoyed reading. I have the possibility to see something like this. NEB 12th Exam Result

I can see that you are an

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. orea exam

Wow what a Great Information

Wow what a Great Information about World Day its very nice informative post. thanks for the post. RealEstateAgentSingapore

What a fantabulous post this

What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. gasgiant.dk

Positive webpage, where did u

Positive webpage, where did u think of the data on this posting?I have perused a couple of the articles on your site now, and I truly like your style. You rock and please keep up the successful work jasa payroll

This content is written very

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. http://europeanaircraftsales.com/

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! Freestanding Baths

tariq

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!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site. http://magnificentboss56.inube.com/blog/5850361/choosing-the-best-way-to-get-some-sleep/

sl786982

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. annabel law

EID MUBARAK WISHES

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us.I too always learn something new from your post. EID MUBARAK WISHES

Thanks a lot very much for

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. http://europeanaircraftsales.com

Download game killer apk

Thanks for the best blog. It was very useful for me.keep sharing such ideas in the future as well. Thanks for sharing the useful information. Download game killer apk

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!. DownloadMinecraftFreeOceanOfGames

Thanks for writing such a

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... payday loans

digitinc

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. توكيل صيانة اريستون

Hydroluxe

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us.I too always learn something new from your post. Hydroluxe

hunting Binocular

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. hunting Binocular

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. Free Movies Downloads Online- Simply Amazing- Enjoy! - Miracle Pianist

I really thank you for the

I really thank you for the valuable info on this great subject and look forward to more great posts. buy pbn links

Actually I am not habituate

Actually I am not habituate to reply a comment on blogs but this blog caught my attention and I am compelled to write a comment here to express my gratitude to you. I would like to appreciate for this awesome work. brandedkitchen

I’m going to read this. I’ll

I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... Beach Wedding Groom Clothes

Thanks for the great feeling

Thanks for the great feeling I experience while reading this post.. I love reading all your articles! Buy Entrepreneurship books

There are thousands of places

There are thousands of places to purchase fans for Instagram, so earlier than you purchase the primary one which pops up, test out our in-depth opinions as well as person reviews submitted with the aid of lots of people which have already sold followers. Buy HR Management Books

Your site is excellent, top

Your site is excellent, top quality function... I am certain numerous may trust me personally even though they don't take time to let you know. Buy job Seeking Books

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. Buy Leadership Business Books

I can’t resists your content

I can’t resists your content were really are helpful. I am sure many readers would agree. Please click this Buy Logistics Books

Everything you have written

Everything you have written just stunned me. Please keep on posting more updates. Buy Operations Management Books

Your points of views were

Your points of views were stunning I was just amazed with all of your thoughts. Buy logistics Books

Thanks a lot very much for

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. Buy Procurement Books

google

I recently came across your

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. Entrepreneurship books

Hello, this weekend is good

Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. Outdoor Glider

Hello! Thanks for such a nice

Hello! Thanks for such a nice and updated information. I got some interesting tips from this post. Nice post with awesome points! Can’t wait for the next one. Brush Better

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!. Hair growth laser cap

tariq

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. http://entertainingbli88.inube.com/blog/5846338/the-very-best-cheap-recreational-kayak-5-things-to-look-for/

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… Justina McCaffrey

digitinc

Thank you shares this article. I found this article more information. HSC Result 2017

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!. BusinessBookPublishers

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… BuyBrandingBooksOnline

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! Buy Change Management Books

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. Buy Digital Marketing Books