HTML DOM Marquee trueSpeed Property
The Marquee trueSpeed Property in HTML DOM is used to set or return whether the scroll delay attribute should be taken as an exact value or not. If the scroll delay value is less than 60 and true speed mode is on then the value of scroll delay is not affecting the scrolling. If the scroll delay value is more than 60 and truespeed mode is on then the true speed is not affecting the scrolling.
Syntax
It returns the marquee trueSpeed Property.
marquee.trueSpeed;
It is used to set the marquee trueSpeed Property.
marqueeObject.trueSpeed="true/false"
Note: This property is depreciated from HTML 5.
Property Value: It contains a Boolean value that represents the regulate the speed of the marquee tag.
Example: Below HTML code returns the Marquee trueSpeed Property.
HTML
<!DOCTYPE html>
< html >
< body style = "text-align:center;" >
< h1 style = "color:green;" >
GeeksforGeeks
</ h1 >
< h2 >DOM Marquee trueSpeed Property</ h2 >
< marquee id = "marqueeID" direction = "right"
scrolldelay = "6" scrollamount = "5"
behavior = "slide" loop = "3"
bgcolor = "green" height = "40px"
truespeed>
GeeksforGeeks:A computer Science
Portal for Geeks
</ marquee >
< br >< br >
< button onclick = "btnClick()" >
Return
</ button >
< p id = "sudo" ></ p >
< script >
function btnClick() {
var txt = document.getElementById(
"marqueeID").trueSpeed;
document.getElementById(
"sudo").innerHTML = txt;
}
</ script >
</ body >
</ html >
|
Output:
HTML DOM Marquee trueSpeed Property
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Apple Safari
- Opera
Last Updated :
15 Jul, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...