2012-08-31 102 views
0

我在HTML,我想隱藏鏈接,如下圖所示:
顯示/隱藏http/ftp鏈接?

007 - Dalla Russia con amore (1963) Full Blu Ray .... 
http://somewhere.example.com/1 
007 - L'uomo dalla pistola d'oro (1974) Full Blu Ray 1.... 
http://somewhere.example.com/2 
007 Operazione Tuono (1965) Full Bluray 43.9 GB... 
http://somewhere.example.com/3 
http://somewhere.example.com/4 
007 Vendetta privata (1989) Full Blu ray .... 
http://somewhere.example.com/5 

我想這樣的結果:

007 - Dalla Russia con amore (1963)..... 
007 - L'uomo dalla pistola d'oro (1974) Full B... 
007 Operazione Tuono (1965) Full Bluray 43... 
007 Vendetta privata (1989) Full Bl... 

我想有一個代碼,讓我查看每個標題分別:

007 - Dalla Russia con amore (1963) Full Blu Ray 39,6 GB AVC DTS-HD 5.1 
http://somewhere.example.com/1 
07 - L'uomo dalla pistola d'oro (1974) Full B... 
007 Operazione Tuono (1965) Full Bluray 43... 
007 Vendetta privata (1989) Full Bl... 
+3

你將不得不提供某種起點..什麼代碼生成你已經有的東西? – carny666

+0

哦!你需要一個腳本來美化你的個人DVD庫管理器? – zessx

+0

我還沒有HTML頁面,但我想只隱藏http鏈接,以隱藏http鏈接的HTML頁面輸出。有可能嗎? – user149018

回答

1

那麼,如果這是我會考慮使用jQuery的

情況

隱藏:​​ 和 顯示:http://api.jquery.com/show/

否則,你可以使用JavaScript的display屬性設置從noneblock

+0

no..i要隱藏標題下方的http鏈接.. – user149018

+0

好的..我可以使用jQuery,但是當我點擊顯示/隱藏按鈕,我想隱藏/只顯示鏈接(http,www,ftp)。我怎樣才能修改它的代碼? – user149018

+0

嘗試使用jquery的'nearest'函數來顯示或隱藏最近的鏈接,當某個標題被點擊時。沒有任何html,javascript或努力/輸入到這篇文章中,我真的只能指出你在正確的方向。 – Chase