
SMP-WEB SERIES USER MANUAL
67
Example 9:
Play background music
If you want to hide a media player and only play music, e.g. MP3, you have to create a CSS
rule to control the attributes of “
OBJECT
” tag, and set the value of param name “
hidden
”
as “
1
”.
<html>
<head>
<style type="text/css">
<!-- object {
visibility: visible;
}
object.hiddenObject {
visibility: hidden ! important; width: 0px ! important; height: 0px ! important; margin: 0px ! important;
padding: 0px ! important;
border-style: none ! important; border-width: 0px ! important; max-width: 0px ! important;
max-height: 0px ! important;
}
-->
</style>
</head>
<body>
<object type="video/main" height="240" width="320" class="hiddenObject">
<param name="src" value="file://1.mp3">
<param name="hidden" value="1">
</object>
</body>
</html>
Summary of Contents for SMP-WEB4
Page 152: ...11 SMP Console...
Page 156: ...USER MANUAL 148...