Community

CommunitySupport Forum

HTML tutorial

Posted May 10, '12 at 11:57pm

master565

master565

3,868 posts

What is the code for scrolling and is there any way to slow it down?

It's called a marquee, just google how to do it. And yes, you can slow it down.

 

Posted May 12, '12 at 1:19pm

Alpha_CK

Alpha_CK

57 posts

nice know about that.

 

Posted May 15, '12 at 10:27pm

Daizidawizard9000

Daizidawizard9000

123 posts

I have a little question. If you have an HTML code but you have a font next to it, can you put the HTML code in the part where you want it to change colors? Like this (I'll use an example):

I would like something like a light blue and I code something like this:

[font size="1" face="Comic Sans MS" color="#46C7C7"]

 

Posted May 16, '12 at 3:13pm

Avorne

Avorne

3,205 posts

I have a little question. If you have an HTML code but you have a font next to it, can you put the HTML code in the part where you want it to change colors? Like this (I'll use an example):

The way I do it is:
[font face="courier" color="#f2a400"]
so I don't see any problem with yours - I think it should work. However, light blue isn't allowed, unless it's just somewhere in your profile/bio.

 

Posted May 16, '12 at 3:50pm

Patrick2011

Patrick2011

2,894 posts

@Daizidawizard9000: Here's the result of your test, even though it's of a disallowed color:

test

@Avorne: Here's the result of your test:

test2

 

Posted May 16, '12 at 5:32pm

UnleashedUponMankind

UnleashedUponMankind

2,023 posts

--Do not post HTML colors that are exact or similar to the font of a moderator or administrator (blue, green, and between). This is in line with the rule about impersonation, regardless of whether or not you were intent upon doing so. You should be familiar with this, because this rule has already been in place. Users will be warned then banned as usual.

Im not sure if this blue is ok, sure its not look like the mod blue, but imo its better to get an "ok" from a mod befoire you use it, so first ask one of them you could do that.

 

Posted May 16, '12 at 6:32pm

Patrick2011

Patrick2011

2,894 posts

Im not sure if this blue is ok, sure its not look like the mod blue, but imo its better to get an "ok" from a mod befoire you use it, so first ask one of them you could do that.

I realize that light blue isn't necessarily allowed, but I was just testing an HTML code that someone else started. In real posting, the light blue should not be used, but the orange should be OK. Also, in the light blue test, I called the color a "disallowed" color because I knew previously that it is not OK to impersonate a mod by posting in blue.

 

Posted May 17, '12 at 1:58pm

Avorne

Avorne

3,205 posts

guy2, ii'm riight iin 2ayiing that yellow ii2 acceptable, aren't ii? ju2t wanted two know 2iince 2ome 2hade2 of yellow are quiite bliindiing.

...I think I'm going to stop typing like Sollux now.

 

Posted May 17, '12 at 4:35pm

Patrick2011

Patrick2011

2,894 posts

guy2, ii'm riight iin 2ayiing that yellow ii2 acceptable, aren't ii? ju2t wanted two know 2iince 2ome 2hade2 of yellow are quiite bliindiing.

Yellow is not an impersonation, so any readable shade of it is allowed.

 

Posted May 18, '12 at 8:03pm

Patrick2011

Patrick2011

2,894 posts

I found out how to do marquee, so I will give the code using [] instead of <>:

Marquee uses the marquee tag like this:

[marquee]this is a marquee[/marquee]

Result:

this is a marquee

Marquee also has multiple parameters that can be set. Each will be introduced with a header.

Background Color

A marquee can be set to have a background color like this:

[marquee bgcolor="red"]colored marquee[/marquee]

When posting a marquee with a background color, you are not limited to red. I will use red for testing purposes though (I could use blue or green, but that would be impersonation). Here's the result of the above code:

colored marquee

Width and Height

You can also set a width and/or height to a marquee. If you use a background color, this sets the dimensions of the background. You can also use this without a background color, but only the width would work, and only to limit the amount of text that can show up at once. Therefore, I will only test dimensions with a background color. Here's the test code:

[marquee bgcolor="red" width="250" height="25"]Testing dimensions with anti-spam in order to show how the width parameter limits text.[/marquee]

This is what it would look like:

Testing dimensions with anti-spam in order to show how the width parameter limits text.

Direction

It is possible to set a direction parameter. Normally, the marquee moves left, so setting direction to left is useless. However, this is how to set the direction to right:

[marquee direction="right"]testing right[/marquee]

The direction can also be combined with a background color and/or dimensions using this order:

[marquee bgcolor="red" width="500" height="22" direction="right"]background and right stack[/marquee]

These are the results:

testing right
background and right stack

Behavior

There is a behavior parameter that can change the behavior of a marquee. Currently, the only known use of this parameter is to make the marquee alternate. This can be used with or without a background and dimensions. If you use this parameter, then direction is irrelevant, so I will not test the combination of behavior and direction. I will test behavior with and without a background. Here's the code for each:

[marquee behavior="alternate"]without a background[/marquee]
[marquee bgcolor="red" width="300" height="25" behavior="alternate"]with a background[/marquee]

Now for the results:

without a background
with a background

Scroll Delay

The last parameter that can be added to marquee is a scroll delay. It can stack with any other parameters but is always inserted last. Here's an example:

[marquee bgcolor="red" width="600" height="17" scrolldelay="100"]this is slower than a normal marquee[/marquee]

There is a certain marquee speed that is used when the scrolldelay is not used, and this cannot be faster, but it can be slower if the number for scrolldelay is high enough. As far as I know, this number needs to be above 50 to have any effect. Here's scroll delay by itself:

[marquee scrolldelay="150"]slow and boring[/marquee]

Here are the results of the two tests:

this is slower than a normal marquee
slow and boring

Notes

You can edit the font inside a marquee by inserting the proper code inside the marquee code. Here's an example of a highly coded marquee:

[marquee bgcolor="red" width="400" height="30" behavior="alternate" scrolldelay="120"][font color="777777" face="arial" size="4"]gray text inside a red background as a slow alternating marquee[/font][/marquee]

Results:

gray text inside a red background as a slow alternating marquee

Also, I recommend keeping marquees to abouts, especially if you are going to use blue or green as either a font color or a background. In addition, I will post this tutorial on my about since not everyone will see this thread.

 
Reply to HTML tutorial

You must be logged in to post a reply!