Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Rotating Theme Background Possible ?
09-18-2010, 02:44 PM (This post was last modified: 09-18-2010 02:47 PM by LeXXoZ.)
Post: #1
Rotating Theme Background Possible ?
Hi folks,

i made myself a nice index for the A-200, but i was wondering if it was possible to use javascript or something to have a rotating background so it keeps changing in a period of lets say 10 seconds ?

Here are some examples of my home made index with dif. backgrounds :

(Text on icons is in dutch, also a button to Uitzending Gemist is there)

[Image: index1pm.th.jpg]
[Image: index2km.th.jpg]
[Image: index3u.th.jpg]
[Image: index4bj.th.jpg]


If there are any dutch people interested in the skin lemme know Smile
Find all posts by this user
Add Thank You Quote this message in a reply
09-23-2010, 01:44 PM
Post: #2
RE: Rotating Theme Background Possible ?
Let me know if you come up with anything.

I'm actually looking for a similar program which will rotate custom movie intro which plays prior to a movie I watch. I have three of them now and I have no way of doing this automatically.

Thanks!


Dragontech ioBox 100HD w/1TB internal - YAMJ - Unique Black Glas
HTPC running XBMC & Boxee
Thecus N4100Pro NAS w/4x1.5TB Western Digital Green Drives Raid 5
Sony VPL-AW10 Projector w/106" Elite Screen
Onkyo TX-SR606
Logitech Harmony One Remote
Find all posts by this user
Add Thank You Quote this message in a reply
09-23-2010, 01:59 PM
Post: #3
RE: Rotating Theme Background Possible ?
Yes, its definitely possible. In fact UMC used to do this with javascript pre 2.0.

I donno how to code it off the top of my head, but essentially you'd just make an array of the various image options, then a timer to keep track of when to change it...and the code to change the image.

Pannasonic Plasma 50" -->HK254-->Emotiva xpa-5 & upa-2
A100 w/ 500gb HDD, A200 w/ mn100, c200 w/ 2.5" 250gb
Calm 2.1, YAMJ - Redefined 1.8a skin, Music Jukebox 8
WHS ex490 w/ 2.5tb's
Find all posts by this user
Add Thank You Quote this message in a reply
09-27-2010, 12:23 AM
Post: #4
RE: Rotating Theme Background Possible ?
this would be REALLY useful for people who just bought a Plasma and want to avoid burn in while still setting everything up on the PCH... such as myself, haha

Any insight on even getting that blue/green sweep in the stock background to change would be good- flat black would at least avoid the problem... a motion background would be best.

Ideas, anyone?
Find all posts by this user
Add Thank You Quote this message in a reply
09-27-2010, 12:57 AM
Post: #5
RE: Rotating Theme Background Possible ?
Use an animated PNG background, set to change to a new image every 5-10 minutes.

Google search of animated png maker

Animated gifs are not possible/supported on the PCH.
I have no knowledge if the NMT even supports an animated PNG... someone needs to test it out and report back.
Find all posts by this user
Add Thank You Quote this message in a reply
04-09-2011, 01:21 PM
Post: #6
RE: Rotating Theme Background Possible ?
Back again, just tested this animated png tool.

Doesnt work Sad

still trying to figure out a way to rotate the backgrounds
Find all posts by this user
Add Thank You Quote this message in a reply
04-11-2011, 09:08 AM
Post: #7
RE: Rotating Theme Background Possible ?
Here is an example of what you are trying to achieve.

Note that ''=" (two single quotes is a double), for whatever reason the code/php blocks mess it up.

This will cycle thru 3 jpg's, changing every 10 seconds.

You simply need to add the javascript portion to your page and make the... var bgList = [...] match your files.
Then see the <body....> tag for the onload bit.

Make sure your using 1280x720 backgrounds to keep image changes quick.

Hope it helps Smile

PHP Code:
<html>

<
head>
  <
title>Change Background Demo</title>

  <
script language=''JavaScript'' type=''text/javascript''>
    var 
bgPtr 1;

    function 
chgBg() {
        var 
bgList = [''1.jpg''''2.jpg''''3.jpg''];
        
document.body.setAttribute(''background''bgList[bgPtr]);
        
bgPtr bgPtr == bgList.length 0: ++bgPtr;
    }
  
</script>

</head>

<body background=''1.jpg'' onload=''window.setInterval('chgBg()', 10000);''>

THE BACKGROUND WILL CHANGE EVERY 10 SECONDS!

</body>

</html> 
Find all posts by this user
Add Thank You Quote this message in a reply
04-19-2011, 01:05 AM (This post was last modified: 04-19-2011 01:14 AM by LeXXoZ.)
Post: #8
RE: Rotating Theme Background Possible ?
thank you very much Big Grin

gonna try imediatly ! Big Grin
Just tested it, works like a charm m8t !

thank you very much !
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [200]Clean theme released jonny555 9 1,183 03-23-2014 10:38 PM
Last Post: Donaldini
  [A-300] Theme and .home theme how start hispanico 6 1,313 01-06-2014 09:43 PM
Last Post: sierduif
  [A-400] Slideshow random background picture .home POPA110 16 4,636 11-23-2013 12:20 PM
Last Post: beklever
  [A400] .home wanting grey icon background to cut out more to match jonny555 0 851 09-19-2013 12:37 PM
Last Post: jonny555
  .theme help cosmogate 1 795 09-03-2013 07:12 PM
Last Post: chris57
Star [HD]Evo Theme v0.2 geekuix 45 21,381 07-28-2013 05:52 AM
Last Post: FARES_7RB
  Theme package for C200 - official link down a user name 0 1,366 02-11-2013 06:31 PM
Last Post: a user name
  Skin and Theme for A400 noskappa 6 3,571 02-05-2013 10:23 AM
Last Post: chris57
  A300 ScreenSaver. Theme? TLC253 2 3,403 07-27-2012 10:03 AM
Last Post: dan16326
  Carbon HD theme Nexer 0 2,729 11-29-2011 08:39 AM
Last Post: Nexer

Forum Jump: