LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to invoke Mozilla webpage in full screen when it is run (https://www.linuxquestions.org/questions/programming-9/how-to-invoke-mozilla-webpage-in-full-screen-when-it-is-run-137140/)

taoweijia 01-21-2004 12:33 PM

how to invoke Mozilla webpage in full screen when it is run
 
hi

I have a program which calls Mozilla to display a flash file and I want this Mozilla page to be in full screen mode automatically( so that I can fully display flash files with any dimension) when it is run. also i need to pass it a dimension of full screen, i.e fullscreen maybe 300 x 400 or 500 x 700.
how do I do it? I tried many times but all faild, it doesn't work that simple as it looks to me. the full screen problem has been a big big headache.
anyone has done the similar thing please give me some idea.

thank you very much

Texicle 01-21-2004 01:54 PM

I usually hit F11 or go to View>Full Screen and it works. As for full screen automatically just by opening up Mozilla, I have no idea. Why would you put any restraints on the full screen size? If you run "full screen" at 300x400 or 500x700 then it's not really full screen is it? If you want it smaller than your actual Mozilla window, then you should be able to view it smaller I would think by View>zoom or whatever for resizing. I'm not at my linux box at home right now and don't have mozilla here or I'd give better details on how to full screen/zoom. Hopefully this helps.

taoweijia 01-22-2004 03:28 AM

hi Texicle,
thanks for your reply, but I don't want to hit F11 or go to menu to zoom, what I am looking for is a way to programmatically invoke Mozilla ( by changing the source, or by a script file which pass through the params). I forgot to say that I will also get rid of all the menu bars and buttons when Mozilla is running. Ok, dont mind the restraint of full screen size now. if anyone knows how to display Mozilla webpage in full screen mode without interfacing with its GUI, it will be much appriciated.
thanks.

taoweijia 01-22-2004 03:33 AM

and....i fond the function which deal with the full screen thing in Mozilla source, i tried to call it in the initialization function and it failed, any one knows where should I invoke this full screen function? thanks a lot

nowonmai 01-23-2004 06:13 AM

if it's a javascript function, just put it in the <body> tag in the page.

german 02-21-2004 04:45 PM

if you unzip $MOZILLA_HOME/chrome/browser.jar and edit (I think) browser.xul and browser.js you can follow through where it initializes the window, and call the fullscreen method. I have done this before, there are a few references available through google to help you out. You can use this method to disable most of the functionality of the browser to make a kiosk browser, for instance.

HTH

B.


All times are GMT -5. The time now is 11:59 PM.