Random splash screen: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
start mozilla.exe | start mozilla.exe | ||
Put the above batch file (mozilla.bat) into the main Moz directory (the one containing mozilla.exe). Also in the main application directory, create a folder named SplashScr, containing n bitmaps (preferably Mozilla splash screens) named 1.bmp to n.bmp. | |||
Put the above batch file (mozilla.bat) into the main Moz directory (the one containing mozilla.exe). Also in the main application directory, create a folder named SplashScr, containing n bitmaps (preferably Mozilla splash screens | |||
Start Mozilla by running the batch file. You'll get a random splash screen every time. | Start Mozilla by running the batch file. You'll get a random splash screen every time. | ||
Thanks to mozby that provided us with this neat little trick. | Thanks to mozby that provided us with this neat little trick. |
Revision as of 09:42, 21 September 2004
Start with a random splash screen
First create the number of splashscreens that you would like to use.
Then create a bat-file:
@echo off NumOfPics=0 for /r %%a in (SplashScr\*.bmp) DO SET /a NumOfPics= %NumOfPics + 1 SET /a ChosenPic="%random% %% %NumOfPics% + 1" COPY SplashScr\%ChosenPic%.bmp Mozilla.bmp start mozilla.exe
Put the above batch file (mozilla.bat) into the main Moz directory (the one containing mozilla.exe). Also in the main application directory, create a folder named SplashScr, containing n bitmaps (preferably Mozilla splash screens) named 1.bmp to n.bmp.
Start Mozilla by running the batch file. You'll get a random splash screen every time.
Thanks to mozby that provided us with this neat little trick.