SennNathan Posted March 5, 2015 Share Posted March 5, 2015 I want to make my script go full screen like youtube videos do just not sure how to make it happen. <?php $search_text = htmlspecialchars($_GET["keyword"]);?> <?php $profile = htmlspecialchars($_GET["profile"]);?> <?php include_once "header.php";?> <title>Space Search</title> <script src="http://www.worldwidetelescope.org/scripts/wwtsdk.aspx"></script> <script> var wwt; function initialize() { wwt = wwtlib.WWTControl.initControl("WWTCanvas"); wwt.add_ready(wwtReady); wwt.endInit(); } function wwtReady() { wwt.loadImageCollection("http://www.worldwidetelescope.org/COMPLETE/wwtcomplete.wtml"); wwt.gotoRaDecZoom(286.485, -27.5231666666667, 60, false); wwtControl.settings.set_solarSystemStars(true); } </script> </head> <div class="header"> <div class="headerwidth"> <div id="searchwrapper"> <div id="search"> <form name="SearchForm" method="get" action="info.php"> <? include_once "menu.php"; ?> <body onload="initialize()"> <div id="WWTCanvas" style="width:1250px; height:540px; margin-left:4%; margin-right:4%; margin-bottom:2.5%; border-style: none; border-width: 0px;"></div> <?php include_once "footer.php";?> Quote Link to comment https://forums.phpfreaks.com/topic/295135-how-to-make-a-script-full-screen/ Share on other sites More sharing options...
CroNiX Posted March 6, 2015 Share Posted March 6, 2015 I'm sure there is some documentation somewhere for that script you are using that probably has a method to do that. Quote Link to comment https://forums.phpfreaks.com/topic/295135-how-to-make-a-script-full-screen/#findComment-1507722 Share on other sites More sharing options...
kicken Posted March 6, 2015 Share Posted March 6, 2015 On a generic level, you can request a particular element be shown full screen in modern browsers. You should check whatever script/API you're using to see if they provide something specific for full screen mode first. Quote Link to comment https://forums.phpfreaks.com/topic/295135-how-to-make-a-script-full-screen/#findComment-1507794 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.