Tips
All Tips ]

A title that pivots on the page

A text that opens like a door until it makes you dizzy.

Enter the following script in the header of your page, between the tags <head> and </head>:

<script>
<!--
var timer
function initiate() {
mytext.Rotate(0,5,0)
timer=setTimeout("initiate()",20)
}
// -->
</script>

And this code between the <body> tags of </body>:

<body onLoad="initiate()">
<OBJECT id="mytext"
CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6"
STYLE="POSITION:absolute;TOP:20px;LEFT:75px;WIDTH:600;HEIGHT:300;">
<PARAM NAME="Line0001" VALUE="SetFillColor(255, 0, 0)">
<PARAM NAME="Line0002" VALUE="SetFont('Verdana', 36, 700, 0, 0, 0)">
<PARAM NAME="Line0003" VALUE="Text('My text here', 0, 0, 0)">
</OBJECT></body>

  • SetFillColor(255,0,0) contains the colour in which the text will be displayed.

  • The three numbers correspond to the values for red, green and blue respectively.

  • SetFont('Verdana', 25, 0, 0, 0, 0) defines the font used for the text.

  • The values associated with this parameter determine the size of the text and whether it is bold, italic, underlined or crossed out, respectively.

  • Text('My text here', 0, 0, 0) corresponds to the text itself and its position.

  • The three values associated with this parameter correspond to the position of the text with regard to the point of rotation (horizontal, vertical, angle).

Compatibility. This tip uses an ActiveX control and only works with Internet Explorer.

Discover all Webmaster tips.