Jump to content


Photo

Scrolling Marquee


  • Please log in to reply
1 reply to this topic

#1 rlarkinsmith

rlarkinsmith

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 22 July 2013 - 02:29 PM

I am trying to figure out the best way to add a scrolling marquee feature to the news bar of my website. I have seen several ways to do it from the marquee tag, which I understand is deprecated, to a java script approach. 

 

Right now my news are static echo statements from mysql rows and works well as such. However, I would like them to roll or show up one at a time so that I can have more than 5 as they start making the page too long. 



#2 PaulRyan

PaulRyan

    Hello World

  • Members
  • PipPipPip
  • 873 posts
  • LocationUK
  • Age:22

Posted 23 July 2013 - 10:46 AM

I personally would load the news from the MySQL table into a JS array and then cycle through them 1 by 1.

 

You could create a scrolling div or just fade the news in and out using jQuery or plain JS.


My Internet Home - Dumping ground for new ideas/tips/tricks and general grievances of developing.

 

Firefox 17 - PHP 5.4 - MySQL 5 - Win7 [64-bit]

Rule for asking for help: If you don't show that you've tried to accomplish something, you don't deserve help.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com