You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
4 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="zh-CN">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||
|
<title>插件模板</title>
|
||
|
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@2.2.4/dist/tailwind.css">
|
||
|
<!-- <link rel="stylesheet" type="text/css" href="style.css" /> -->
|
||
|
<!-- <script type="text/javascript" src="plugin.js"></script> -->
|
||
|
</head>
|
||
|
<body>
|
||
|
<script>
|
||
|
var test1 = function (x, y, text)
|
||
|
{
|
||
|
// eleId 自己定义的变量名,任意取
|
||
|
// document.createElement ('marquee'); 勿改变
|
||
|
var eleId = document.createElement ('marquee');
|
||
|
eleId.style.position = 'absolute';
|
||
|
eleId.style.left = x + 'px';
|
||
|
eleId.style.top = y + 'px';
|
||
|
eleId.innerText = text;
|
||
|
document.body.appendChild (eleId);
|
||
|
}
|
||
|
|
||
|
window.onload = function ()
|
||
|
{
|
||
|
var abc = "下周一三五停电,下周二四六停水。请各位业主相互转告";
|
||
|
test1 (10, 10, abc);
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
</html>
|