Scrolling text (marquee) using HTML and Javascript in Tasker

309 views
Skip to first unread message

Warren Njiru

unread,
Sep 4, 2014, 5:51:54 PM9/4/14
to tas...@googlegroups.com
Hi All

Am trying to run the following html code within tasker Html Popup but cannot  display anything:


<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Scrolling Text Example</title>
  <script type="text/javascript" src="file:///mnt/sdcard/Crawler/crawler.js">
</script>
</head>
<body >
<div class="marquee" id="mycrawler">
The Quick Brown Fox jumps over the lazy Dog.
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '5px',
'width': '450px',
'height': '450px',
'background': 'lightyellow',
'border': '1px solid #CC3300',
'background-image':'url("file:///mnt/sdcard/Crawler/background.jpg")',
'background-size': 'cover',
'font-family':'Arial',
'font-size':'200px',
'color':'#2DE82D',
'font-weight':'bold'
},
inc: 10,
mouse: 'cursor driven',
moveatleast: 5,
neutral: 150,
persist: true,
savedirection: true
});
</script>
</body>
</html>



I have put crawler.js (attached) , background.jpg plus the html file containing the above code in a folder called Crawler in the root of the SD card.

Can someone please tell me what could be preventing the code to display.
Its working excellent on a PC ( file:///mnt/sdcard/ removed)

Regards

crawler.js

Matt R

unread,
Sep 4, 2014, 7:47:35 PM9/4/14
to tas...@googlegroups.com
I don't think the HTML popup has JS.  You'll have to make a custom scene (you could clone the popup scene if you wish) using a webview element.

Matt
Reply all
Reply to author
Forward
0 new messages