亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

不同頁面參數傳遞

不同頁面參數傳遞

慕俠8885196 2016-02-24 14:11:28
在首頁有八個車型的logo,任意點擊其中的一個在另外一個展示頁,怎么根據你點擊的那個車的logo,來顯示其具體的型號的車圖片???首頁代碼車logo代碼: ?<table?border="0"?cellpadding="0"?cellspacing="0"?style="width:?100%;border:rgb(215,215,215);"> ????????????<tr> ????????????????<td?style="text-align:?center;?height:65px;border:rgb(215,215,215);"><a?href="../choosepage/second.aspx"><img?id?=?"icon1"?style="width:40px;?height:40px;"?src='<%=arrBrand[0]?%>'?/></a></td> ????????????????<td?style="text-align:?center"><a?href="../choosepage/second.aspx"><img?id="icon2"?style="width:40px;?height:40px;"?src='<%=arrBrand[1]?%>'?/></a></td> ????????????????<td?style="text-align:?center"><a?href="../choosepage/second.aspx"><img?id="icon3"?style="width:40px;?height:40px;"src='<%=arrBrand[2]?%>'?/></a></td> ????????????????<td?style="text-align:?center"><a?href="../choosepage/second.aspx"><img?id="icon4"?style="width:40px;?height:40px;"src='<%=arrBrand[3]?%>'?/></a></td> ????????????</tr> ????????????<tr> ????????????????<td?style="text-align:?center;?height:65px;"?class="auto-style1"><a?href="../choosepage/second.aspx"><img?id="icon5"?style="width:40px;?height:40px;"?src='<%=arrBrand[4]?%>'?/></a></td> ????????????????<td?style="text-align:?center"?class="auto-style1"><a?href="../choosepage/second.aspx"><img?id="icon6"?style="width:40px;?height:40px;"?src='<%=arrBrand[5]?%>'?/></a></td> ????????????????<td?style="text-align:?center"?class="auto-style1"><a?href="../choosepage/second.aspx"><img?id="icon7"?style="width:40px;?height:40px;"?src='<%=arrBrand[6]?%>'?/></a></td> ????????????????<td?id="more"??style="text-align:?center"?class="auto-style1"><img?id="icon8"?onclick="more()"?style="width:40px;?height:40px;"?src='<%=url8?%>'?/></td> ????????????</tr> ????????</table> ????????展示頁的代碼:在這個right里面顯示車圖片 ????????<div?id="brand_right"?runat="server"?style="background-color:#f1f1f1;width:66.7%;position:fixed;margin-top:48px;margin-left:33.3%;"></div>
查看完整描述

2 回答

?
望天的少年

TA貢獻8條經驗 獲得超1個贊

<a?href="../choosepage/second.aspx?id=1">url</a><a?href="../choosepage/second.aspx?id=2">url</a>

-----------------

jieshou.aspx? <% get? id.?

get傳輸就get接收

查看完整回答
反對 回復 2016-02-27
  • 慕俠8885196
    慕俠8885196
    <a href='../choosepage/second.aspx?brand_id=<%=mListBrand[1].brand_id %>'>這個方法我試過了,可是對象還是不顯示。我的數據是通過json數據對象解析的,有個問題我獲取的對象是所有顯示的。
  • 慕俠8885196
    慕俠8885196
    然后我通過點擊div來顯示隱藏$("#brand_right>div:eq(" + $(this).index() + ")").show(); $("#brand_right>div:eq(" + $(this).index() + ")").siblings().css({ "display": "none" });
  • 2 回答
  • 0 關注
  • 1668 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號