將您下載的源代碼粘貼到您班級(jí)主頁(yè)頁(yè)面的內(nèi)容里即可!(打開(kāi)設(shè)置,進(jìn)行操作)

十年的淮陰網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。成都營(yíng)銷網(wǎng)站建設(shè)的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整淮陰建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。成都創(chuàng)新互聯(lián)公司從事“淮陰網(wǎng)站設(shè)計(jì)”,“淮陰網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
有代碼就好辦了,雖然我不知道許愿墻是什么但你有代碼,那接下來(lái)的就是將代碼粘貼到博客里了。具體操作如下:①?gòu)?fù)制你在網(wǎng)上找的代碼②進(jìn)入博客后,點(diǎn)【頁(yè)面設(shè)置】③再點(diǎn)擊【自定義組件】④點(diǎn)擊【添加文本組件】⑤點(diǎn)擊后,千萬(wàn)不能急著粘貼代碼,那樣顯示的就全是代碼了!!必須先點(diǎn)擊顯示源代碼點(diǎn)擊后:⑥接著就可以將你的代碼粘貼到里面了!!希望能幫到你。●▽●
先用磚砌一道墻,用水泥砂漿抹平.待干后用白灰泥涂刷.然后用禿筆一支在上面疾書(shū)大字:有求必應(yīng).完事,收工
jsp頁(yè)面:
%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%
%@page import="java.util.*,system.VO.*,system.DAO.*,system.Util.*"%
%
Utils user=null;
if(request.getSession().getAttribute("user")!=null){
user=(Utils)request.getSession().getAttribute("user");
}
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
WishPagin wpagin = new WishPagin();
String sql = "select * from wishes order by wish_time desc;";
System.out.println(sql);
wpagin.setSql(sql);
ArrayListWish wishes = wpagin.getWishes(request
.getParameter("page"));
%
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ""
html
head
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
title許愿墻/title
div id="Content"
center
div style="width: 900px; height: 15px; clear: left"/div
%
int intPage = wpagin.getIntPage();
int pageCount = wpagin.getPageCount();
int rowCount = wpagin.getRowCount();
%span本網(wǎng)站共有%=rowCount%條留言 共%=pageCount%頁(yè) 第%=intPage%頁(yè) /span
%
if (intPage pageCount) {
%
form action="%=request.getContextPath()%/pages/wish.jsp"
method="post"a
href="%=request.getContextPath()%/pages/wish.jsp?page=%=intPage + 1%"下一頁(yè)/a %
}
% %
if (intPage 1) {
%a
href="%=request.getContextPath()%/pages/wish.jsp?page=%=intPage - 1%"上一頁(yè)/a %
}
%
/form
div style="width: 900px; height: 10px; clear: left"/div
div id="neirong"
table class="TABLEI" border="1" cellpadding="5" cellspacing="5"
tr
th祝愿人/th
th接受人/th
th祝愿內(nèi)容/th
th祝愿時(shí)間/th
/tr
%
if (wishes.size() != 0) {
for (Wish wish : wishes) {
%
tr
td class="ListSender"a
href="%=request.getContextPath()%/Read_wishServlet?id=%=wish.getId()%"%=new UserDAO().findById(wish.getWisher_id())
.getUserName()%/a/td
td class="ListAccpeter"a
href="%=request.getContextPath()%/Read_wishServlet?id=%=wish.getId()%"%=wish.getReceiver_name()%/a/td
td class="ListInfo"a
href="%=request.getContextPath()%/Read_wishServlet?id=%=wish.getId()%"
%
if (wish.getWishContent().length() 20) {
wish.setWishContent(wish.getWishContent().substring(0, 20));
out.print(wish.getWishContent() + "...");
} else {
out.print(wish.getWishContent());
}
% /a/td
td class="ListDate"a
href="%=request.getContextPath()%/Read_wishServlet?id=%=wish.getId()%"
%
String time = wish.getWishTime();
out.print(time.substring(0, time.length() - 10));
% /a/td
/tr
%
}
}
%
/table
/div
/center
/div
/body
/html
java類:
package system.Util;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import system.VO.Wish;
/**
* 祝愿分頁(yè)顯示
*
* @author jyuanqi
*
*/
public class WishPagin {
private int pageSize = 10; // 一頁(yè)顯示的記錄數(shù)
private int rowCount; // 記錄總數(shù)
private int pageCount; // 總頁(yè)數(shù)
private int intPage; // 待顯示頁(yè)碼
private String sql = "";
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getRowCount() {
return rowCount;
}
public void setRowCount(int rowCount) {
this.rowCount = rowCount;
}
public int getPageCount() {
return pageCount;
}
public void setPageCount(int pageCount) {
this.pageCount = pageCount;
}
public int getIntPage() {
return intPage;
}
public void setIntPage(int intPage) {
this.intPage = intPage;
}
public String getSql() {
return sql;
}
public void setSql(String sql) {
this.sql = sql;
}
public ArrayListWish getWishes(String strPage) {
ArrayListWish wishes = new ArrayListWish();
Connection Conn = null;
Statement stmt = null;
ResultSet rs = null;
String url;
if (strPage == null) {// 表明在QueryString中沒(méi)有page這一個(gè)參數(shù),此時(shí)顯示第一頁(yè)數(shù)據(jù)
intPage = 1;
} else {// 將字符串轉(zhuǎn)換成整型
intPage = java.lang.Integer.parseInt(strPage);
if (intPage 1)
intPage = 1;
}
// 裝載JDBC驅(qū)動(dòng)程序
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
// 設(shè)置數(shù)據(jù)庫(kù)連接字符串
url = "jdbc:mysql://localhost:3306/piaobozz";
// 連接數(shù)據(jù)庫(kù)
try {
Conn = java.sql.DriverManager.getConnection(url, "root", "123");
} catch (SQLException e) {
e.printStackTrace();
}
// 創(chuàng)建一個(gè)可以滾動(dòng)的只讀的SQL語(yǔ)句對(duì)象
try {
stmt = Conn.createStatement(
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,
java.sql.ResultSet.CONCUR_READ_ONLY);
} catch (SQLException e) {
e.printStackTrace();
}// 準(zhǔn)備SQL語(yǔ)句
// 執(zhí)行SQL語(yǔ)句并獲取結(jié)果集
try {
rs = stmt.executeQuery(sql);
} catch (SQLException e) {
e.printStackTrace();
}
// 獲取記錄總數(shù)
try {
rs.last();
} catch (SQLException e) {
e.printStackTrace();
}// ??光標(biāo)在最后一行
try {
rowCount = rs.getRow();
} catch (SQLException e) {
e.printStackTrace();
}// 獲得當(dāng)前行號(hào)
// 記算總頁(yè)數(shù)
pageCount = (rowCount + pageSize - 1) / pageSize;
// 調(diào)整待顯示的頁(yè)碼
if (intPage pageCount) {
intPage = pageCount;
}
if (pageCount 0) {
// 將記錄指針定位到待顯示頁(yè)的第一條記錄上
try {
rs.absolute((intPage - 1) * pageSize + 1);
} catch (SQLException e) {
e.printStackTrace();
}
// 顯示數(shù)據(jù)
int i = 0;
try {
while (i pageSize !rs.isAfterLast()) {
Wish wish = new Wish(rs.getInt("id"), rs
.getInt("wisher_id"),
rs.getString("receiver_name"), rs
.getString("wish_content"), rs
.getString("wish_time"));
wishes.add(wish);
i++;
rs.next();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
// 關(guān)閉結(jié)果集
try {
rs.close();
// 關(guān)閉SQL語(yǔ)句對(duì)象
stmt.close();
// 關(guān)閉數(shù)據(jù)庫(kù)
Conn.close();
} catch (SQLException e) {
e.printStackTrace();
}
return wishes;
}
}
1.找個(gè)許愿墻代碼傳到空間在論壇頁(yè)面上增加進(jìn)入許愿墻的鏈接
2.不知道現(xiàn)在的論壇有沒(méi)推出許愿墻的插件 有就直接安裝
一樓的兄弟看法太籠統(tǒng),老實(shí)說(shuō),你要加這個(gè)背景的話,建議你先找到幾張好看的關(guān)于許愿樹(shù)的圖片,然后用這樣那個(gè)一個(gè)軟件,可以將它變?yōu)榇a,然后直接粘貼到你的博客文字編輯框里面,上傳就好了 ,我給你具體講解一下怎樣做你需要的效果 :
原始代碼:
A href="圖片超鏈接的地址(即點(diǎn)擊圖片后,您想出現(xiàn)的網(wǎng)頁(yè))" target=_blankIMG src="圖片本身的地址(就是指你的圖片自己從哪里來(lái)的)" border=0/A
步驟:
1、首先找到圖片本身的地址(就是指你的圖片自己從哪里來(lái)的
2、其次確定圖片超鏈接的地址(即點(diǎn)擊圖片后,您想出現(xiàn)的網(wǎng)頁(yè))
3、將原始代碼替換
4、點(diǎn)擊打開(kāi)以下網(wǎng)頁(yè)→“在線HTML編輯器”,打開(kāi)網(wǎng)頁(yè)后
首先點(diǎn)擊:“ 查看HTML源代碼”前面的框(就是打上對(duì)鉤),
其次把步驟3里面的替換后的代碼放到“在線HTML編輯器”面面去,
再次點(diǎn)擊:“ 查看HTML源代碼”前面的框(就是去掉對(duì)鉤),
5.復(fù)制“在線HTML編輯器”里面的到日志里面發(fā)布即可!
注意瀏覽的時(shí)候按ctrl+F5就可以看到效果,不要忘記按ctrl+F5。
什么都解決了…… 是吧…………
還告訴你一點(diǎn),讓你的博客更新鮮,更精彩:
建議你申請(qǐng)一個(gè)播放器,我是在申請(qǐng)的播放器,添加你喜歡的音樂(lè)鏈接地址后(最多可以添加60首,但個(gè)人建議不要添加太多,以免影響打開(kāi)網(wǎng)頁(yè)的速度),可以直接生成代碼,將代碼放入空白面板中就可以了,很簡(jiǎn)單的。
還有很多小工局,可以向我索取
名稱欄目:java許愿墻代碼 許愿墻源碼
瀏覽地址:http://chinadenli.net/article26/hhjicg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、用戶體驗(yàn)、標(biāo)簽優(yōu)化、品牌網(wǎng)站建設(shè)、微信公眾號(hào)、服務(wù)器托管
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)