Livejournal
Log in
Post
Friends
My journal
miz_bliz
Friends Only
Jul 20, 2004 18:56
(
Read more...
)
Leave a comment
Back to all threads
miz_bliz
June 26 2005, 14:15:53 UTC
No bother at all, I am happy to help people when I can. There are a couple of ways to do the marquee code, here's one (this is the one mata is using)
# MARQUEE START #
#################
# This is the title of the component #
var string k1Mtitle = "Title goes here";
#
# This is the height of the marquee #
var string k1Mheight = "200";
#
# This is the width of the marquee #
var string k1Mwidth = "";
#
# This is the css class to attach to the marquee #
var string k1Mclass = "marquee";
#
# This is the direction of the marquee #
var string k1Mdirection = "up";
#
# This is the speed of the marquee #
var int k1Mscrollamount = 2;
##################################################
print_comp_header("$k1Mtitle");
var string k1MmarqueeBegin = "
var string k1MmarqueeEnd = "";
var string k1MscrollamountString = $k1Mscrollamount + "";
if($k1Mheight != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " height='$k1Mheight'";
}
if($k1Mwidth != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " width='$k1Mwidth'";
}
if($k1Mclass != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " class='$k1Mclass'";
}
if($k1Mdirection != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " direction='$k1Mdirection'";
}
if($k1MscrollamountString != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " scrollamount='$k1MscrollamountString'";
}
$k1MmarqueeBegin = $k1MmarqueeBegin + ">";
# this is where you put the stuff that you want to marquee
# in between $k1MmarqueeBegin and $k1MmarqueeEnd
# it currently has the default userpic of the currently viewed journal
"""
$k1MmarqueeBegin
Content goes here
$k1MmarqueeEnd
""";
print_comp_footer();
Reply
lavinialavender
June 26 2005, 14:23:36 UTC
...Thanks. Lol, I'll save that.
Reply
Back to all threads
Leave a comment
Up
# MARQUEE START #
#################
# This is the title of the component #
var string k1Mtitle = "Title goes here";
#
# This is the height of the marquee #
var string k1Mheight = "200";
#
# This is the width of the marquee #
var string k1Mwidth = "";
#
# This is the css class to attach to the marquee #
var string k1Mclass = "marquee";
#
# This is the direction of the marquee #
var string k1Mdirection = "up";
#
# This is the speed of the marquee #
var int k1Mscrollamount = 2;
##################################################
print_comp_header("$k1Mtitle");
var string k1MmarqueeBegin = "
var string k1MmarqueeEnd = "";
var string k1MscrollamountString = $k1Mscrollamount + "";
if($k1Mheight != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " height='$k1Mheight'";
}
if($k1Mwidth != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " width='$k1Mwidth'";
}
if($k1Mclass != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " class='$k1Mclass'";
}
if($k1Mdirection != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " direction='$k1Mdirection'";
}
if($k1MscrollamountString != ""){
$k1MmarqueeBegin = $k1MmarqueeBegin + " scrollamount='$k1MscrollamountString'";
}
$k1MmarqueeBegin = $k1MmarqueeBegin + ">";
# this is where you put the stuff that you want to marquee
# in between $k1MmarqueeBegin and $k1MmarqueeEnd
# it currently has the default userpic of the currently viewed journal
"""
$k1MmarqueeBegin
Content goes here
$k1MmarqueeEnd
""";
print_comp_footer();
Reply
Reply
Leave a comment