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

 

 

shiprabrock

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . . Mod Clash Of Clans Atualizado

news

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

shiprabrock

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”. Visto vietnam 

product evaluations on bedroom items

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. product for your personal sleep needs

shiprabrock

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. free credit score gov

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!. 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. furry-footed

johncarter2038

So luck to come across your excellent blog. Your blog brings me a great deal of fun.. Good luck with the site. promo code

You might be a single

You might be a single extremely trustworthy website article writer. After all, generally, people reveal concerns as well as the details they feature just isn't since sensible. http://www.kultunaut.dk/perl/stedlist/type-nynaut?StedNavn=uldum&Area

There is definitely a lot to

There is definitely a lot to know about this. I think you created some beneficial aspects in capabilities also 6ft trampoline

shiprabrock

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. aadhar card download

Sofortbildkamera mieten

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

free credit report gov

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. free credit report gov

shiprabrock

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. Aadhaar digital signature validation

www.avast.com

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

There is definitely a lot to

There is definitely a lot to know about this. I think you created some beneficial aspects in capabilities also vitamin c serums for face

Well, I just thought it may

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. https://www.musicaltouch.sg/

sl786982

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also https://www.uldum-hojskole.dk

shiprabrock

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”. free credit report gov

When you live somewhere else,

When you live somewhere else, the stupidest-seeming comforts from home begin to take on symbolic importance. shkoh.com.sg

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. Bhutan Tour Package with Airfare

IMPRESSION

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!Lockhart Texas Home Builder

shiprabrock

This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!solitaire online

aadhar card

Thank you so much. This is very kind of you to share such an amzing knowledge. Hats off. aadhar card

shiprabrock

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! best product reviews

Good post but I was wondering

Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! best places in Mauritius

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. corso antincendio grosseto

shiprabrock

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. check domain da pa

steve smith

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. buy youtube views

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? Kanunlar

steve smith

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. F1R wheels for sale

shiprabrock

i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. brands in China

shiprabrock

Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. NYC Corporate Video Production

shiprabrock

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. Hulu

shiprabrock

Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. corporate events production

I find it easy to follow the

I find it easy to follow the steps. Ketterman Rowland & Westlund

Great tips and very easy to

Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog. streaming media

shiprabrock

Love what you're doing here guys, keep it up!.. Netflix

Very good points you wrote

Very good points you wrote here..Great stuff…I think you’ve made some truly interesting points.Keep up the good work. New Jersey

shiprabrock

Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. serial key

visit my site

Decent data, important and superb plan, as impart well done to smart thoughts and ideas, loads of incredible data and motivation, both of which I require, on account of offer such an accommodating data here. visit my site

Straßenhunde

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

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! compare credit monitoring services

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! typical review thebest-mattress specializes in

firm and soft latex items

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. firmness based on body type

firm and soft latex items

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. firmness based on body type

shiprabrock

It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. comprar lipodrox

sl786982

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. www.flowerssameday.org.uk/tag/john-lewis-flowers-by-post/

shiprabrock

Your post was very nicely written. I’ll be back in the future for sure! charlbrown

schoolsenterprise

Providing a relevant education - that bridges the gap between school and work - means students leave school ready to get a good job or set up their own business, and reach their full potential in life. schoolsenterprise

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. Employee PF Balance