PDA

View Full Version : javascript random + table cells


abualjori
07-17-2010, 10:37 PM
Hi !



I made this small mod to help me to get some featured content displayed below header for some inactive members so they could participate more in discussions and new threads .


https://vborg.vbsupport.ru/attachment.php?attachmentid=119767&stc=1&d=1279409669



am trying to enhance this mod by making cells location change every time page refreshed so it doesn't seem to display the same content , and to draw more attention , but I couldn't do it .:D


I would be thankful if someone could help me to achieve this.;)


Thank you :)

Guest190829
07-18-2010, 08:11 AM
It'd be much easier, at least in my opinion, to randomize the order of the data fetch (this is assuming you are pulling content from the database or an RSS feed) than traverse and re-arrange the DOM nodes of each cell.

abualjori
07-18-2010, 08:46 AM
In fact , am using admin cp options to add urls and thread's subject to the table .


At least I know what to look for in JavaScript ( traverse and re-arrange the DOM nodes of each cell );)

I will look them up now , of course some more help would be appreciated.

Thank you for your helpful reply :)

--------------- Added 1279474570 at 1279474570 ---------------

I couldn't find any straight forward way to do it with javascript any ideas please ? :(

--------------- Added 1279523595 at 1279523595 ---------------

please move this thread to where it could be seen .:D