Hi everybody!
I’m trying to fix out a problem about the viewport width of a web site that I’m developping with Hype.
The first step is to build up a fixed site that could be seen on PC and mobile devices in the same way…the next step is to create a specific layout for mobile devices.
What happens right now is this: I’ve placed the index file and the HTML5 folder in the root of my website and when I try to open the site from a mobile device (in this case an iPhone 6) I can see this:
I understood that this frame is caused by the web-provider because of the use of cloak!!
I manually edited the width of the viewport on that frame and set it to 1024, now I can see correctly the web site from the mobile devices!
can I also ask you if there is some incompatibility between chrome and random image Java script?!
I use a script like this:
<script language="JavaScript">
<!--
/*
Random Image Script- By JavaScript Kit (http://www.javascriptkit.com)
Over 400+ free JavaScripts here!
Keep this notice intact please
*/
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="image1.gif"
myimages[2]="image2.gif"
myimages[3]="image3.gif"
myimages[4]="image4.gif"
myimages[5]="image5.gif"
myimages[6]="image6.gif"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0>')
}
random_imglink()
//-->
</script>
<p align="center">This free script provided by<br />
<a href="http://javascriptkit.com">JavaScript
Kit</a></p>
but the images are not loading on chrome…I can solve the problem creating a random image display (in the same scene) directly with Hype?!