IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
  Reply to this topicStart new topicStart Poll

 Scrolling Marquee

 
MLVD  
Posted: Friday, Apr 1 2011, 05:02
Quote Post


Thug
Group Icon
Group: Members
Joined: Jan 22, 2009

au.gif

XXXXX



I want have a scrolling news bar type thing on my site but I want to load a specific file which will contain the text.
So basically I want it point to lets say a html file so its easier to edit the text.
PMXbox LivePlayStation Network
  Top
 

 
fred  
Posted: Friday, Apr 1 2011, 09:22
Quote Post



Group Icon
Group: Network Admins
Joined: Jul 20, 2002

XXXXX



It depends what you've got available on your server. You can do it with HTML-only with an iframe:
HTML
<marquee><iframe src="news.html" height="20" width="100%"></iframe></marquee>


Personally, I'd prefer to avoid the iframe and use server-side scripting, e.g. PHP:
HTML
<marquee><?php echo file_get_contents('news.html'); ?></marquee>
PM
  Top
 

 
MLVD  
Posted: Friday, Apr 1 2011, 09:41
Quote Post


Thug
Group Icon
Group: Members
Joined: Jan 22, 2009

au.gif

XXXXX



I've used the PHP version is there anyway I can change the font and color of it?

This post has been edited by MLVD on Friday, Apr 1 2011, 09:45
PMXbox LivePlayStation Network
  Top
 

 
fred  
Posted: Friday, Apr 1 2011, 09:58
Quote Post



Group Icon
Group: Network Admins
Joined: Jul 20, 2002

XXXXX



You should be able to add styles to the <marquee> the same as any other element, assuming no overriding markup/styles in the included file.
HTML
<marquee style="color: orange; font-family: Arial, Verdana;"> ...
PM
  Top
 

 
sickboyy  
Posted: Friday, Apr 29 2011, 21:03
Quote Post



Group Icon
Group: Members
Joined: Feb 27, 2011

XXXXX



<marquee> is dated and has veeery limited functionality. You should consider using a JS library like jQuery for this instead.
PM
  Top
 

 
LulzAllDay  
Posted: Saturday, May 7 2011, 22:08
Quote Post


Dead and gone.
Group Icon
Group: Members
Joined: Feb 12, 2011

cd.gif

XXXXX



QUOTE (fred @ Apr 1 2011, 09:22)
It depends what you've got available on your server. You can do it with HTML-only with an iframe:
HTML
<marquee><iframe src="news.html" height="20" width="100%"></iframe></marquee>


Personally, I'd prefer to avoid the iframe and use server-side scripting, e.g. PHP:
HTML
<marquee><?php echo file_get_contents('news.html'); ?></marquee>

I agree with avoiding the iframe, especially if you are using a iframe blocker script (in example,
CODE
<style>
#conash3D0
{
display:none;
}
</style>
) because you're using a free hosting and want to avoid those terrible ads.
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG