BinaryWorks.it Official Forum
Home
|
Profile
|
Active Topics
|
Members
|
Search
|
FAQ
All Forums
eXtreme Movie Manager (Rel. 7), No More Updates
Suggestions / New Features
Number of Varibales for Cover, Backcover, Fanart
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
JDommi you gave me an idea. It's simple, too simple to have the idea before. We don't need all the variables a multiple times. _MOVIE_COVER1_ _MOVIE_BACKCOVER1_ _MOVIE_FANART1_. One of each is enough. The others are simply (unlimited) created via javascript. Just replacing for example all additional Movie Covers with this code: [code]<div align="center" id="extracover"><br> <a id="mcov1" style="display:none;">_MOVIE_COVER1_</a> </div> <script type="text/javascript"> var relTo = document.getElementById ("extracover"); var fmc = $('#mcov1').text(); for (var mic = 1;mic < 200;mic++) { relTo.insertAdjacentHTML('BeforeEnd','<img src="' + fmc.replace('_1.','_' + mic + '.') + '" onerror="ImgError2(this);" class="my_img">#013;');} </script>[/code] And up to 200 Covers are added in this example. Filenames are created via javascript loop. To make that as fast as possible we just would need 3 new variables: [b]_MOVIE_COVER_COUNT_ _MOVIE_BACKCOVER_COUNT_ _MOVIE_FANART_COUNT_[/b] These Variables should simply give back the number of each Imagetyp for the Movie/TV Show. If these Variables are added to XMM we code in the example for covers could change to: [code]for (var mic = 1;mic < _MOVIE_COVER_COUNT_;mic++) {[/code] And only the really existing Images would be added to the page (increased loading speed)
Check here to include your profile signature.
BinaryWorks.it Official Forum
© Binaryworks.it
Generated in 0.02 sec.