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

 

 

canada us financial planning

Whether you are transitioning residency between Canada and the U.S. or you have already made the move, it is important to understand the benefits of a cross-border financial plan. Learn how Cardinal Point can help when holding investment assets or financial interests in the U.S. or Canada. canada us financial planning

Treuetester

Very nice writing. I will keep these tips in my mind. This blog has really peaks my interest. Thank you so much. Treuetester

good posts

Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. Accountants East Grinstead

bilalkhan3831

Hey, great blog, but I don’t understand how to add your site in my rss reader. Can you Help me please? exterior components of a bed

Tax Return

We serve for a variety of clients needs ranging from prom nights to executive movements while maintaining a high quality service standard. Tax Return

Nice Article

I would like to thank the author for sharing this source code. Your have been sharing a lot of such tweaks on Linux based applications. I think this post will be a reference to all computer science students. Expecting more codes like this. veterans aid and attendance springfield mo

tafe sa courses online

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? tafe sa courses online

devidmiller5060

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

高雄當鋪

Those codes help me so much to set my sticky note. It is easy to be seen and set now. 高雄當鋪

sl786982

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. Haushaltsauflösung

sl786982

This is a great post; it was very edifying. I look ahead in reading more of your work. aften in keel

devidmiller5060

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”. Iso 9001 la spezia

shiprabrock

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. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. dieta dukan fase ataque cardapio

bilalkhan3831

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. mattress-inquirer guarantee of quality

sl786982

What a beautiful creation! You are very talented. Keep up the good work! I'm admin at: Krank.de

james jack

Comprar Web ofrece servicios de diseño web donde comprar una web de calidad profesional que aportarás un valor añadido a tu negocio o empresa facilitándote muchas de las labores que ahora te resultan más complicadas. Si lo que quieres es comprar una web profesional elige calidad y valor para aumentar tus clientes y ventas. Comprar Web

shiprabrock

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! certificazioni qualita livorno

transplante capilar são paulo

This is a simple code. Only : drupal_add_js('misc/tableheader.js'); and your table appearance will be more easier to look. transplante capilar são paulo

how to download pictures from iphone to computer

I will really appreciate the writer’s choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. how to download pictures from iphone to computer

bilalkhan3831

So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site. identify a mattress-inquirer

james jack

I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles. free movie streaming without sign up

james jack

You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it! voyance-retour-amour.com

bilalkhan3831

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. AR 15 kit 

imranuddin

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! seo firmaları istanbul

james jack

Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing. bromance

bilalkhan3831

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. sleepjunkie

i think

I think if you explain about this syntax it would be better for those who do not understand about it. Regard's Wins-Property

my sources

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 : my sources

shiprabrock

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. เย็ด

mayazoe

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. idata vize

shiprabrock

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. ESR wheels

bilalkhan3831

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. http://www.vonbaer.ee/pood/naiste-meeste-rahakotid-ja-aksessuaarid/shekel-nahast-kaarditasku

james jack

Very informative post ! There is a lot of information here that can help any business get started with a successful social networking campaign ! voyante par telephone

local online marketing

Internet marketing services do not consist of one simple process. In fact, an effective internet marketing strategy will use various, well-known techniques that are proven to work in the world of online trading. Here is a brief introduction to several of these techniques: local online marketing

mayazoe

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. Curso pela Internet

ilanrafa

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . . jackets for men in Pakistan

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! kombi servisi

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? sistema di gestione qualità livorno

winzip download free

winzip download free WinZip is the gold standard compression tool whereas using this tool is a most trusted way of working with the compressed files

mayazoe

You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. Corsi sicurezza sul lavoro grosseto

shiprabrock

his is my first time i visit here. I found so many entertaining 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 leisure here! Keep up the excellent work. The sleepjunkie system is excellent

imranuddin

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

hafridi

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! Vision raptor wheels

hafridi

My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! מפעיל ליום הולדת גיל 7

MSP Airport Car Service

The latest models of luxurious vehicles are the part of our fleet.We provides affordable (MSP) Airport Limousine Services for business, frequent travelers and families. MSP Airport Car Service

devidmiller5060

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. Vision raptor wheels

devidmiller5060

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

hafridi

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”. 24Option Review

devidmiller5060

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. shopbrumano

shiprabrock

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. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. American Racing wheels atx