Java

Moderators: zibadian
Number of threads: 7832
Number of posts: 18231

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Auto Fullscreen + Auto Slideshow Posted by icemanz on 13 May 2011 at 12:41 PM
can someone help me with this one? once i open my webpage i want it to auto full screen then auto slideshow my image ... like image01 image02 image03 and it will loop continuely please help
Report
Re: Auto Fullscreen + Auto Slideshow Posted by Josh Code on 12 Nov 2011 at 9:16 AM
This is not a Java issue unless you're really confused and by "page" you mean "window" or "frame".


Assuming you are thinking of JavaScript instead of Java, here is how to do it:
Copied from:
stackoverflow

<script type="text/javascript">
    window.onload = maxWindow;

    function maxWindow() {
        window.moveTo(0, 0);


        if (document.all) {
            top.window.resizeTo(screen.availWidth, screen.availHeight);
        }

        else if (document.layers || document.getElementById) {
            if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
                top.window.outerHeight = screen.availHeight;
                top.window.outerWidth = screen.availWidth;
            }
        }
    }

</script> 


The slideshow can be done with JavaScript and DOM(Document Object Model) manipulation. Learn about JavaScript and DOM from w3schools. If you learn those things, similar problems that can come up later can be solved by you independently.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.