Advertisement

10.08.2008 at 10:09AM PDT, ID: 23798148
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Offsetting absolute positioning to match elements position

Asked by catonthecouchproductions in Jquery, Cascading Style Sheets (CSS)

I am working on my site here: http://www.ryancoughlin.com/ and am using jquerys ui slider and I have a call out fade in when you start the fade, but if you play with it, see how it gets offset, I can't get it to stay on top of the slider_handle, my css for the callout is here:

#slider_callout{ background:url(../images/callout.gif) no-repeat; height:46px; width:38px; overflow:hidden; position:absolute; top:-50px;left:10px;padding:8px 0 0 0;text-align:center;font-weight:bold;color:#202020; }

And I have it updating via jquery here:

slide: function(e,ui){
                        $('#panel_contents').css('-moz-opacity', "."+ui.value);
                        $('#slider_callout').css('left', ui.value).text(ui.value);
                  }

Any ideas on what I can do to keep it inline with the slider, and not offset to the right or left. My full index.php is attached below.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
<?
header("Expires: Fri, 30 Oct 1998 14:19:41 GMT"); // Date in the pastß
//require('/home/content/g/l/a/glanceatx/html/speedy/php_speedy.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ryan coughlin - web and graphic designer: the portfolio of</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="all" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="content" content="general" />
<meta name="revisit" content="daily" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="copyright" content="Copyright (c) 2008 www.ryancoughlin.com" />
<meta name="author" content="Ryan Coughlin" />
<meta name="description" content="Portfolio website of Ryan Coughlin (RKS Design Studios) - XHTML/CSS/PHP" />
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection" />
<!--[if IE]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link href="css/fall08.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/fancy.css" rel="stylesheet"  type="text/css" media="screen" />
<!-- load all of the goodies here -->
<!-- must haves for jquery -->
<script src="js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="js/code.js" type="text/javascript"></script>
<script src="js/jquery-ui.js" type="text/javascript"></script>
<script src="js/jquery.scrollTo-min.js" type="text/javascript"></script>
<script type="text/javascript">
/* <![CDATA[ */
$(document).ready(function(){
	$("#dontmissit").css({"opacity": 0.50});
	
	// 1 = cookie is set and tip is hidden
	$("#dontmissit").click(function (){
		$("#dontmissit").fadeOut("fast",function(){
			$.cookie('dontmissit-tip', '1'); // set cookie
		});
	return false;
	});
	
	if ($.cookie('dontmissit-tip') != '1') {
		$("#dontmissit").addClass('tip');
	}
	
	$("div.panel_button").click(function(){
		$("div#panel").animate({ height: "500px" }) .animate({
		height: "425px" }, "fast"); 
		$("div.panel_button").toggle();
	}); 
	
	$("div#hide_button").click(function(){
		$("div#panel").animate({
		height: "0px"
		}, "fast"); 
	}); 
	
	$("img.toplayer").click(function(){
		$("#scrollTo").addClass('styles-scroll'); // add class to extend card down, elimates scrolling before user clicks
		$.scrollTo('900px',500,{onAfter:function(){$("img.btmlayer").animate({ top: "1000px" }); } });
	}); 
		
	
	$("img.btmlayer").click(function(){
		$("#scrollTo").removeClass('styles-scroll');
		$.scrollTo('0px',500,{onAfter:function(){$("img.btmlayer").animate({ top: "45px" }); } });
	
   });
   
		$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=22474462@N00&lang=en-us&format=json&jsoncallback=?", function(data){
			$.each(data.items, function(i,item){
				$("<img/>").attr("src", item.media.m).appendTo("#images")
				.wrap("<a href='" + item.link + "'></a>");
			});
			
			$("#title").html(data.title);
			$("#description").html(data.description);
			$("#link").html("<a href='"+data.link+"' target=\"_blank\">visit my flickr!!</a>");
			//Notice that the object here is "data" because that information sits outside of "items" in the JSON feed
			
			$('#images').cycle({
			fx:     'scrollDown',
			speed:    'normal',
			timeout:  0,
			next:   '#next',
			prev:   '#prev'
			});
		});
		
		$('#slider_callout').hide();
		$('.slider_bar').slider({
			handle: '.slider_handle',
			minValue: .0,
			maxValue: .98,
			start: function(e,ui){
				$('#slider_callout').fadeIn('fast');
			},
			stop: function(e,ui){
				$('#slider_callout').fadeOut('fast');
			},
			slide: function(e,ui){
				$('#panel_contents').css('-moz-opacity', "."+ui.value);
				$('#slider_callout').css('left', ui.value).text(ui.value);
			}
		});
});
/* ]]> */
</script>
</head>
<body>
<div id="container">
	<h1><span>ryan coughlin - did you know that right handed people live longer than left handed people? im screwed. </span></h1>
	<div id="dontmissit">
		<!-- image declared in CSS -->
	</div>
	<div id="toppanel">
		<div id="panel">
			<div id="panel_contents">
			</div>
			<div class="container">
				<br /><br /> <img src="images/welcomeplay.png"  width="760" height="68" alt="welcome to my playground, i like to do this" title="welcome to my playground, i like to do this" />
				<div class="span-2">
					<img src="images/flickr-icon.png" width="80" height="81" alt="flickr" title="flickr" />
					<div align="center">
						<a id="prev" href="#"><img src="images/up.png" alt="up" title="up" width="16" height="16" /></a> <br /> <a id="next" href="#"><img src="images/down.png" alt="down" title="down" width="16" height="16" /></a>
					</div>
				</div>
				<div class="span-7">
					<div id="flickr">
						<div id="images">
						</div>
						<div id="flickrNav">
						</div>
					</div>
				</div>
				<div class="span-2">
					<img src="images/del-icon.png" width="80" height="81" alt="delicious" title="delicious" />
				</div>
				<div class="span-6">
					<p>
						<script type="text/javascript" src="http://feeds.delicious.com/v2/js/ryancoughlin?count=5&amp;sort=date&amp;extended&amp;name"></script>
					</p>
				</div>
				<div class="span-2">
					<img src="images/twitter-icon.png" width="80" height="81" alt="twitter" title="twitter" />
				</div>
				<div class="span-5 last">
					<div id="twitter_div">
						<ul id="twitter_update_list">
						</ul>
						,
					</div>
					,
					<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
					,
					<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ryancoughlin.json?callback=twitterCallback2&amp;amp;count=5"></script>
				</div>
			</div>
		</div>
		<div class="panel_button" style="display: visible;">
			<img src="images/top_btn.png"  alt="expand"/> <a href="#"></a>
		</div>
		<div class="panel_button" id="hide_button" style="display: none;">
			<img src="images/top_btn_col.png" alt="collapse" /> <a href="#"></a>
		</div>
	</div>
	<div id="front" align="center">
		<img src="images/card.png" alt="my name is ryan coughlin and im a web and graphic designer, this is what I do. im good at php, css, xhtml, javascript. and yes, im for hire" title="my name is ryan coughlin and im a web and graphic designer, this is what I do. im good at php, css, xhtml, javascript. and yes, im for hire" width="779" height="507" border="0" usemap="#Map" class="toplayer" /> <img src="images/card-info.png" alt="blank" width="709" height="465" border="0" class="btmlayer" />
		<p><span>my name is ryan coughlin and im a web and graphic designer, this is what I do. im good at php, css, xhtml, javascript. and yes, im for hire</span></p>
		<div class="bubbleInfo">
			<map name="Map" id="Map">
				<area class="trigger" shape="poly" coords="559,359,543,399,721,437,739,398,745,382" href="#" id="hirebox" alt="and..im for hire." />
				<div class="popup">
					find my conact info here.
				</div>
			</map>
		</div>
		<div id="scrollTo">
		</div>
		
		<div class="slide_container">
			<div class="small_label">
			</div>
			<div class="slider_bar">
				<div class="slider_handle">
				</div>
			</div>
			<div class="large_label">
			</div>
			<div id="slider_callout"></div>
		</div>
	</div>
</div>
<script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
        var pageTracker = _gat._getTracker("UA-2458450-1");
        pageTracker._initData();
        pageTracker._trackPageview();
    </script>
</body>
</html>
<?php
//$compressor->finish();
?>
[+][-]10.08.2008 at 01:07PM PDT, ID: 22672779

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 02:04AM PDT, ID: 22676602

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 07:13AM PDT, ID: 22678569

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 10:26AM PDT, ID: 22680535

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 03:07PM PDT, ID: 22682891

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.09.2008 at 05:29PM PDT, ID: 22683557

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Jquery, Cascading Style Sheets (CSS)
Sign Up Now!
Solution Provided By: sh0e
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.09.2008 at 05:38PM PDT, ID: 22683589

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628