通过滑块进行页面导航 [英] page navigation via the slider

查看:83
本文介绍了通过滑块进行页面导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



i想要帮助我有图像滑块我希望导航一些特定的图像在这里,如果该图像出现一旦鼠标是ponter和用户点击该图像应该重定向到相关页面。这里有iam发布我的代码。



dear all,

i want help i have image slider i want navigate some specific image is in here and if that image is appear once mouse is ponter and user click that image it should have to redirect to relevant page. here with iam posting my code.

$sql = "select * from ".$tblImages." Where cid=1 Order by image_order";
					$rs  = mysql_query($sql) or die (mysql_error());
					$i=0;
					while( $row = mysql_fetch_array($rs)) {
					$autoid = $row['id']; //if id become 24 bwlo if condition.
					$title = $row['title'];
					$sub_title = $row['sub_title'];
					$textarea_top = $row['textarea_top'];
					$textarea_width = $row['textarea_width'];
					$images = $row['images'];
					$image_order = $row['image_order'];
					if($textarea_top !=''){
						$_top =' top:'.$textarea_top.'px;';	
					}else{$_top ='';}
					if($textarea_width !=''){
						$_width =' width:'.$textarea_width.'px;';	
					}else{$_width ='';}
					
					if ($autoid == 24)
					{
					 echo " <a href="media_publications.php"> </a> ";// this is the page that i need to redirect.
					}

推荐答案

sql = select * from
sql = "select * from ".


tblImages 。 其中cid = 1按image_order排序;
tblImages." Where cid=1 Order by image_order";


rs = mysql_query(
rs = mysql_query(


这篇关于通过滑块进行页面导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆