i have gotten most of it to be responsive, except the little rectangles that are called zt-tags in the css. when i resize the window, they go down the window out of sight. any solution for that? the images resize just fine, but those little rectangular things just slide out of sight when window is resized. as you can see i tried it with the first tag by using percentages instead of px. it just slides away like the rest of them.
here's the html
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Image Zoom Tour with jQuery</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Image Zoom Tour with jQuery" />
<meta name="keywords" content="jquery, zoom, tour, images, zoom in, zoom out, plugin, css3" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<noscript>
<link rel="stylesheet" type="text/css" href="css/styleNoJS.css" />
</noscript>
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' />
<link href='http://fonts.googleapis.com/css?family=Ultra' rel='stylesheet' type='text/css' />
<script>
// Mouseover/ Click sound effect- by JavaScript Kit (www.javascriptkit.com)
// Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code
//** Usage: Instantiate script by calling: var uniquevar=createsoundbite("soundfile1", "fallbackfile2", "fallebacksound3", etc)
//** Call: uniquevar.playclip() to play sound
var html5_audiotypes={ //define list of audio file extensions and their associated audio types. Add to it if your specified audio file isn't on this list:
"mp3": "audio/mpeg",
"mp4": "audio/mp4",
"ogg": "audio/ogg",
"wav": "audio/wav"
}
function createsoundbite(sound){
var html5audio=document.createElement('audio')
if (html5audio.canPlayType){ //check support for HTML5 audio
for (var i=0; i<arguments.length; i++){
var sourceel=document.createElement('source')
sourceel.setAttribute('src', arguments[i])
if (arguments[i].match(/\.(\w+)$/i))
sourceel.setAttribute('type', html5_audiotypes[RegExp.$1])
html5audio.appendChild(sourceel)
}
html5audio.load()
html5audio.playclip=function(){
html5audio.pause()
html5audio.currentTime=0
html5audio.play()
}
return html5audio
}
else{
return {playclip:function(){throw new Error("Your browser doesn't support HTML5 audio unfortunately")}}
}
}
//Initialize two sound clips with 1 fallback file each:
var mouseoversound=createsoundbite("../sounds/thumpy.mp3")
var clicksound=createsoundbite("../sounds/thumpy.mp3")
</script>
<link href="http://fonts.googleapis.com/css?family=Bitter&subset=latin" rel="stylesheet" type="text/css">
<style>
img {max-width:100%;
height: auto;
}
@media \0screen {
img {
width: auto; /* for ie 8 */
}
}
</style>
</head>
<body bgcolor="black"><font color="#9799BF" size=4em><b>
<div class="container">
<div id="zt-container" class="zt-container">
<div class="zt-item" data-id="zt-item-1">
<img class="zt-current" src="images/image3.png" style='width:100%;'/>
<div class="zt-tag" data-dir="1" data-link="zt-item-2" data-zoom="1005" data-speed="2600" data-delay="60" style="top:57.9%;left:7.8%;width:20%; height:20%;" onmouseover="mouseoversound.playclip()">Mercury</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-3" data-zoom="1005" data-speed="2600" data-delay="60" style="top:64%;left:19%;width:87px; height:81px;">Venus</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-4" data-zoom="1005" data-speed="2600" data-delay="60" style="top:67%;left:32%;width:87px; height:81px;" onmouseover="mouseoversound.playclip()"">Earth</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-5" data-zoom="1005" data-speed="2600" data-delay="60" style="top:68%;left:45%;width:87px; height:81px;"onmouseover="mouseoversound.playclip()" >Mars</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-6" data-zoom="1005" data-speed="2600" data-delay="60" style="top:68%;left:59%;width:87px; height:81px;"onmouseover="mouseoversound.playclip()" >Jupiter</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-7" data-zoom="1005" data-speed="2600" data-delay="60" style="top:65.1%;left:73%;width:87px; height:81px;"onmouseover="mouseoversound.playclip()" >Saturn</div>
<div class="zt-tag" data-dir="1" data-link="zt-item-8" data-zoom="1005" data-speed="2600" data-delay="60" style="top:58%;left:87%;width:87px; height:81px;" onmouseover="mouseoversound.playclip()">Neptune</div>
</div>
<div class="zt-item" data-id="zt-item-2">
<img class="zt-current" src="images/image3_1SAVEs.jpg"" style="width:100%;"/>
<div class="zt-tag" data-dir="1" data-link="zt-item-9" data-zoom="10" data-speed="850" data-delay="100" style="top:201px;left:544px;width:50px;height:30px;"></div>
<div class="zt-tag" data-dir="1" data-link="zt-item-10" data-zoom="2" data-speed="550" data-delay="0" style="top:155px;left:10px;width:150px;height:100px;"></div>
<div class="zt-tag" data-dir="1" data-link="zt-item-11" data-zoom="15" data-speed="850" data-delay="0" style="top:15px;left:10px;width:90px;height:50px;"></div>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="15" data-speed="700" data-delay="0"></div>
</div>
<div class="zt-item" data-id="zt-item-3">
<img class="zt-current" src="images/image3_3.jpg" style='width:100%;'>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="10" data-speed="650" data-delay="20"></div>
</div>
<div class="zt-item" data-id="zt-item-4">
<img class="zt-current" src="images/image3_2.jpg" style='width:100%;'>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="2" data-speed="550" data-delay="0"></div>
</div>
<div class="zt-item" data-id="zt-item-5">
<img class="zt-current" src="images/image3_5.jpg" style='width:100%;'>
<div class="zt-tag" data-dir="1" data-link="zt-item-6" data-zoom="8" data-speed="650" data-delay="0" style="top:330px;left:238px;width:40px;height:30px;"></div>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="15" data-speed="700" data-delay="0"></div>
</div>
<div class="zt-item" data-id="zt-item-6">
<img class="zt-current" src="images/image3_6.jpg" style='width:100%;'/>
<div class="zt-tag" data-dir="1" data-link="zt-item-7" data-zoom="2" data-speed="550" data-delay="0" style="top:10px;left:109px;width:240px;height:180px;"></div>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="8" data-speed="650" data-delay="0"></div>
</div>
<div class="zt-item" data-id="zt-item-7">
<img class="zt-current" src="images/image3_7.jpg" style='width:100%;'/>
<div class="zt-tag" data-dir="1" data-link="zt-item-8" data-zoom="3" data-speed="550" data-delay="0" style="top:377px;left:152px;width:125px;height:70px;"></div>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="2" data-speed="550" data-delay="0"></div>
</div>
<div class="zt-item" data-id="zt-item-8">
<img class="zt-current" src="images/image3_8.jpg" style='width:100%;'/>
<div class="zt-tag zt-tag-back" data-dir="-1" data-link="zt-item-1" data-zoom="3" data-speed="550" data-delay="0"></div>
</div>
</div>
</div>
<object type="application/x-shockwave-flash" data="player_mp3.swf" width="1" height="1">
<param name="movie" value="/player_mp3.swf" />
<param name="bgcolor" value="#4CB1A8" />
<param name="FlashVars" value="mp3=../sounds/data3.mp3&loop=1&autoplay=1" />
</object>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.transform-0.9.3.min_.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.zoomtour.js"></script>
<script type="text/javascript">
$(function() {
$('#zt-container').zoomtour();
});
</script>
<div style="position: absolute; left: 0%; top:0%;"><img src="../over.png" style='width:100%; z-index: 9999'></div>
Bookmarks