vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   javascript random + table cells (https://vborg.vbsupport.ru/showthread.php?t=246802)

abualjori 07-17-2010 09:37 PM

javascript random + table cells
 
1 Attachment(s)
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/attachmen...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 07: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 07: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 [DATE]1279474570[/DATE] at [TIME]1279474570[/TIME] ---------------

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

--------------- Added [DATE]1279523595[/DATE] at [TIME]1279523595[/TIME] ---------------

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


All times are GMT. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01358 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete