![]() |
|
You need to upgrade your flash player or to allow javascript to enable the menu. |
Using CSS in Q-NewsTickerHere in Quadroland we really like to use CSS technology. It helps to design pages faster and in more convenient manner. We even cannot imagine any modern website design without using styles. Q-NewsTicker allows us to adjust texts in usual css way (General Properties\Text Properties\CSS code). However Flash Player supports a limited number of css properties. Let us help you to look into these restrictions. We will use Adobe's Flash help and add some comments. The following table shows some of the supported CSS properties and values, as well as their corresponding ActionScript property names. Each ActionScript property name is derived from the corresponding CSS property name; if the name contains a hyphen, the hyphen is omitted and the subsequent character is capitalized. Therefore these lines will be equal in the CSS definition:
font-family: Arial, Helvetica, sans-serif;
fontFamily: Arial, Helvetica, sans-serif; Honestly we prefer to use usual CSS style with the hyphens, because it's rather confusing to mix 2 different ways of spelling.
An example of css definitions for the regular news ticker:
title {
font-family:arial;
font-size:13px;
color:#ffffff;}
description {
font-family:arial;
font-size:11px;
color:#8a7c54;
leading:2px;}
.date {
font-family:arial;
font-size:10px;
color:#ffffff;}
title, title_mouseover and title_mousedown blocks are responsible for the news titles. description, description_mouseover and description_mousedown will adjust appearance of the news bodies (short description). .date is a custom class for the paragraph with the news publication dates. There can be as many custom classes as needed. Here is an example of the Main text which uses above classes:
<img src="data/01.jpg">See the earliest known photo of Helen Keller and Anne Sullivan, Uncle Sam in a sad state, a groundbreaking space image.
<p class="date">March 07, 2008</p> That's all for now. We hope that this information was useful for you. |
||||||||||||||||||||||||||||||||||||||||
|
Home |
Download |
Purchase |
FAQ |
Using CSS |
Contact Us
© 2006-2008Quadroland All Rights Reserved. |