2021年10月7日 星期四

jQuery 系列 Slide滑動效果

 




<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Event</title>

<style>

*{margin: 0px;}

body{

width: 610px;

margin-top: 35px;

margin-right: auto;

margin-left: auto;

margin-bottom: 50px;

text-align: center;

font-size: 154%;

-webkit-box-shadow: 0px 0px;

box-shadow: 0px 0px;

}


#contant{background-color: #999966;

display:none;

}

</style>

<script src="jquery-2.1.4.js"></script>

<script>

$(document).ready(function(){

//alert(123)

//動畫設置


//.slideDown()

//.slideUp()

//.slideToggle()

$("a").click(function(e){

var obj=$(e.currentTarget).attr("name")

// alert(obj)

switch(obj){

case "slide001": 

$("#contant").slideDown("slow")

break;

case "slide002": 

$("#contant").slideUp("slow")

break;

case "slide003": 

$("#contant").slideToggle("slow")

break;

}


})



})


</script>

</head>

<body>

<a href="javascript:;" name="slide001">slideDown滑下</a>

<a href="javascript:;" name="slide002">SlideUp滑上</a>

<a href="javascript:;" name="slide003">SlideToggle滑動開關</a>

<hr/>

<div id="contant"><img src="pit/pit_show_08.jpg" alt="動畫說明" title="動畫說明"/></div>


</body>


</html>

jQuery 系列 動畫的淡化效果

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Event</title>
<style>
*{
margin: 0px;
text-align: center;
color: #B1430A;
font-style: oblique;
font-variant: small-caps;
font-weight: bolder;
font-size: 125%;
line-height: 130%;
}
body{
margin-top: 37px;
margin-left: auto;
margin-bottom: 73px;
text-align: center;
}

#contant{
background-color:#0090CC;
/*display:none;*/
}
</style>
<script src="jquery-2.1.4.js"></script>
<script>
$(document).ready(function(){
//alert(123)
//動畫設置
//.fadeIn()
//.fadeOut() 
//.fadeTo()
//.fadeToggle() 
//.hide() 
//.show()
$("#contant").hide();
$("a[name=show]").click(function(e){
$("#contant").show()
})
$("a[name=hide]").click(function(e){
$("#contant").hide()
})
$("a[name=fadeIn]").click(function(e){
$("#contant").fadeIn("slow")
})
$("a[name=fadeOut]").click(function(e){
$("#contant").fadeOut(2000)
})
$("a[name=fadeToggle]").click(function(e){
$("#contant").fadeToggle(2000)
})
$("a[name=fadeTo]").click(function(e){
$("#contant").fadeTo(1000,0.5)
})
})

</script>
</head>
<body>
<a name="show" href="javascript:;">show(顯示)</a> 
<a name="hide" href="javascript:;">hide( 隱藏)</a> 
<a name="fadeIn" href="javascript:;">fadeIn(淡入)</a> 
<a name="fadeOut" href="javascript:;">fadeOut(淡出)</a> 
<a name="fadeToggle" href="javascript:;">fadeToggle(淡化開關)</a> 
<a name="fadeTo" href="javascript:;">fadeTo(自訂淡化)</a> 
<hr/>
<div id="contant">
<img src="Pt/pit_show_04.jpg" alt="動畫說明" width="700" height="397" title="動畫說明"/></div>

</body>

</html>

jQuery 系列 滑鼠事件 鍵盤事件



 

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Event</title>

<style>

*{margin: 0px;}

body{width: 610px;

margin: 10px auto}

section{

width: 600px;

background-color: #04A0A3;

margin: 3px;

}

span{

background-color: #01C43C;

width: 100px;

display: inline-block;

text-align: center;

margin-right: 5px;

}

#contant{background-color: #999966}

</style>

<script src="jquery-2.1.4.js"></script>

<script>

$(document).ready(function(){

//$(對象).事件類型(對應動作)

//滑鼠事件

//.click()---點一下

// $("#contant").val('預設值').click(function(e){alert(e)})

//.contextmenu() -----右鍵功能表

// $("body").contextmenu(function(e){alert("右鍵功能失效");return false})

//.dblclick() -----點二下

// $("input[type=text]").dblclick(function(e){alert(e)})

//.hover() -----滑過時

// $("h3").hover(function(e){alert(e)})

//.mousedown() -----滑鼠按下

// $("#contant").mousedown(function(e){alert("按下")})

//.mouseup() -----滑鼠放開

// $("#contant").mouseup(function(e){alert("放開")})

//.mouseout() -----滑鼠離開

// $("input[type=text]").mouseout(function(e){alert("out")})

//.mouseover() -----滑鼠移過去

// $("input[type=text]").mouseover(function(e){alert("over")})

//.toggle()-----反轉開關

$("input[type=text]").toggle(function(e){alert(e)})

})


</script>

</head>

<body>

<form action="">

<h3>事件說明</h3>

<section><span>文字輸入:</span><input type="text"></section>

<section><span>密碼輸入:</span><input type="password"></section>

<section><span>下拉選單:</span>

<select name="cars">

<option value="volvo">Volvo</option>

<option value="saab">Saab</option>

<option value="fiat">Fiat</option>

<option value="audi">Audi</option>

</select>

</section>

<section><span>表單送發:</span><input type="submit" value=""></section>

<section><span>選取圓鈕:</span><input type="radio" name="" id=""></section>

<section><span>核取方塊:</span><input type="checkbox" name="" id=""></section>

<section><span>基本按鈕:</span><input type="button" value=""></section>

</form>

<hr/>

<div id="contant">訊息內容</div>


</body>

</html>







<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Event</title>

<style>

*{margin: 0px;}

body{width: 610px;

margin: 10px auto}

section{

width: 600px;

background-color: #04A0A3;

margin: 3px;

}

span{

background-color: #01C43C;

width: 100px;

display: inline-block;

text-align: center;

margin-right: 5px;

}

#contant{background-color: #999966}

</style>

<script src="jquery-2.1.4.js"></script>

<script>

$(document).ready(function(){

//.keydown() -----鍵盤按下

//$("input[type='text']").keydown(function(e){alert("keydown")})

//.keypress() -----敲擊鍵盤

$("input[type='text']").keypress(function(e){alert("keypress")})

//.keyup()-----鍵盤彈上

//$("input[type='text']").keyup(function(e){alert("keyup")})

})


</script>

</head>

<body>

<form action="">

<h3>事件說明</h3>

<section><span>文字輸入:</span><input type="text"></section>

<section><span>密碼輸入:</span><input type="password"></section>

<section><span>下拉選單:</span>

<select name="cars">

<option value="volvo">Volvo</option>

<option value="saab">Saab</option>

<option value="fiat">Fiat</option>

<option value="audi">Audi</option>

</select>

</section>

<section><span>表單送發:</span><input type="submit" value=""></section>

<section><span>選取圓鈕:</span><input type="radio" name="" id=""></section>

<section><span>核取方塊:</span><input type="checkbox" name="" id=""></section>

<section><span>基本按鈕:</span><input type="button" value=""></section>

</form>

<hr/>

<div id="contant">訊息內容</div>


</body>


</html>

表單事件



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Event</title>
<style>
*{margin: 0px;}
body{width: 610px;
margin: 10px auto}
section{
width: 600px;
background-color: #04A0A3;
margin: 3px;
}
span{
background-color: #01C43C;
width: 100px;
display: inline-block;
text-align: center;
margin-right: 5px;
}
#contant{background-color: #999966}
</style>
<script src="jquery-2.1.4.js"></script>
<script>
$(document).ready(function(){
//alert(123)
$("input[type=text]").bind({
focus:function(e){
$("input[type=text]").val("")
$("#contant").text("文字欄位進入")
}
,blur:function(e){$("#contant").text("文字欄位離開")}
,select:function(e){$("#contant").text("選取文字")}
} )
$("input[type=password]").bind({
focus:function(){}
,blur:function(){}
,select:function(){}
})
$("select").change(function(e){$("#contant").text("變動選單值為:"+$("#cars").val())})

})

</script>
</head>
<body>
<h3>事件說明</h3>
<form action="javascript:alert( 'success!' );">
<section><span>文字輸入:</span><input type="text" value="請輸入"></section>
<section><span>密碼輸入:</span><input type="password"></section>
<section><span>下拉選單:</span>
<select id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
</section>
</form>
<hr/>
<div id="contant">訊息內容</div>

</body>

</html>

jQuery 系列 事件基本觀念 執行彈出訊息

 


$(選取對象).事件項目(執行動作,事件回傳)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Event</title>
<style>
*{margin: 0px;}
body{width: 610px;
margin: 10px auto}
section{
width: 600px;
background-color: #04A0A3;
margin: 3px;
}
span{
background-color: #01C43C;
width: 100px;
display: inline-block;
text-align: center;
margin-right: 5px;
}
#contant{background-color: #999966}
</style>
<script src="jquery-2.1.4.js"></script>
<script>
$(document).ready(function(){
//alert(123)
$("h3").mouseover(function(event){
alert("hi~")
})
})

</script>
</head>
<body>
<form action="">
<h3>事件說明</h3>
<section><span>文字輸入:</span><input type="text"></section>
<section><span>密碼輸入:</span><input type="password"></section>
<section><span>下拉選單:</span>
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
</section>
<section><span>表單送發:</span><input type="submit" value=""></section>
<section><span>選取圓鈕:</span><input type="radio" name="" id=""></section>
<section><span>核取方塊:</span><input type="checkbox" name="" id=""></section>
<section><span>基本按鈕:</span><input type="button" value=""></section>
</form>
<hr/>
<div id="contant">訊息內容</div>

</body>

</html>

2021年10月6日 星期三

jQuery 系列 使用滑鼠改變標籤內容


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jqery_select</title>
<style type="text/css" media="screen">
*{margin:0px;
padding:0px;}
body{width:960px;margin:5px auto;}
li{width:100px;
float:left;
background-color:#ccccFF;
margin:3px;
cursor:pointer;
list-style-type: none;
text-align:center;
}
section{background-color: #999999}
div{clear:both;
margin:5px;
background-color:#ffcccc;
border: solid 1px #333;
}
</style>
<script src="jquery-2.1.4.js"></script>
<script >
$(document).ready(function(){
// alert("hello")
$(".con").hide();
$("li").each(function(i,obj){
$(obj).attr("title",i)

$(obj).mouseover(function(e){
//alert(e.currentTarget)
var i=$(this).attr("title")
var t_text=$(this).text();
//$(".con").eq(i).fadeIn("slow").text(t_text)
//改變文字
//$(".con").eq(i).fadeIn("slow").html("<h1>"+t_text+"</h1>")
//改變標籤
$(".con").eq(i).fadeIn("slow").append("<h1>"+t_text+"</h1>")
//追加
//$(".con").eq(i).fadeIn("slow")
//$("<h1>"+t_text+"</h1>").appendTo("body")
//追加到
})
$(obj).mouseout(function(e){
//alert(e.currentTarget)
var i=$(this).attr("title")
$(".con").eq(i).fadeOut("slow").children().last().remove()
})
})


})
</script>
</head>
<body>

<ul>
<li class="sel" id="item01" style="color:red">クルミ</li>
<li class="sel" id="item02" style="color:green">うたは</li>
<li class="sel" id="item03" style="color:blue">さやか </li>
<li class="sel" id="item04" style="color:yellow">雪ノ下</li>
<li class="sel" id="item05" style="color:black">ジブリール</li>
</ul>
<section id="content" style="clear:both">
<div class="con" id="lorem01"><img src="../../Adobe課程/DW_201904/DW0429/48414496_211785576370998_2662290896388620288_n.jpg" width="482" height="646" alt=""/></div>
<div class="con" id="lorem02"><img src="../../Adobe課程/DW_201904/DW0429/yande.re 361877 sample ass bikini breast_hold kasumigaoka_utaha mizuki_ame saenai_heroine_no_sodatekata sawamura_spencer_eriri swimsuits topless.jpg" width="561" height="750" alt=""/></div>
<div class="con" id="lorem03"><img src="../../Adobe課程/DW_201904/DW0429/d53f8794a4c27d1ee28e97d512d5ad6eddc43872.jpg" width="411" height="665" alt=""/></div>
<div class="con" id="lorem04"><img src="../../Adobe課程/DW_201904/DW0429/yande.re 426584 sample ass crossover edogawakid feet katou_megumi open_shirt pantsu panty_pull saenai_heroine_no_sodatekata seifuku thighhighs wallpaper yukinoshita_yukino.jpg" width="750" height="444" alt=""/></div>
<div class="con" id="lorem05"><img src="../../Adobe課程/DW_201904/DW0429/6a22384b-4f91-47d7-adfa-46f5de20f140.jpg" width="508" height="733" alt=""/></div>
</section>
</body>
</html>







<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Event</title>
<style>
*{margin: 0px;}
body{width: 610px;
margin: 10px auto;
}
li{
background-color: #0F5F6C;
width: 100px;
margin: 3px;
float: left;
list-style-type: none;
text-decoration: underline;
text-align: center;
font-size: 124%;
color: #00CB36;
font-weight: bold;
line-height: 154%;
}
#pit_con{
width: 640px;
height: 420px;
clear: both;
text-align: center;
text-decoration: underline;
}

</style>
<script src="jquery-2.1.4.js"></script>
<script>
$(document).ready(function(){
//alert(123)
$("li").css("cursor","pointer")
$("li").bind({
//以下為滑入動作
mouseover:function(e){//alert("mouseover")
$("#pit_con").fadeOut("slow",function(){
// alert($(e.currentTarget).index())
var i=$(e.currentTarget).index()+1
$("#pit_con img").attr("src","Pt/pit_show_0"+i+".jpg")
$(this).fadeToggle("slow",function(){
});
})
}//以下為滑出動作
,mouseout:function(e){//alert("mouseout")
}//以下為點繫動作
,click:function(e){//alert("click")
}
})
})

</script>
</head>
<body>
<ul>
<li id="pit_show_01">ジブリール</li>
<li id="pit_show_02">クルミ</li>
<li id="pit_show_03">うたは</li>
<li id="pit_show_04">雪ノ下</li>
<li id="pit_show_05">由比ヶ浜</li>
</ul>
<div id="pit_con">
<img src="Pt/pit_show_02.jpg" alt="" width="500" >
</div>
</body>

</html>

2021年10月5日 星期二

jQuery 系列 樣式控制

 //取得樣式|指定樣式|物件內容

//$("對象").css("樣式值")--讀取樣式
//$("對象").css("樣式名","樣式值")--指定樣式
//$("對象").css({"樣式名":"樣式值","樣式名":"樣式值","樣式名":"樣式值"})--指定多重樣式


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jqery_select</title>
<style type="text/css" media="screen">
*{margin:0px;
padding:0px;}
body{width:960px;margin:5px auto;}
li{
width: 100px;
float: left;
background-color: #EEB1FF;
margin: 3px;
cursor: pointer;
list-style-type: none;
text-align: center;
}
div{
clear: both;
margin: 5px;
background-color: #68FFFD;
border: solid 1px #333;
text-align: left;
}
</style>
<script src="jquery-2.1.4.js"></script>
<script >
$(document).ready(function(){
//alert("hello")
//Jquery 樣式
//取得樣式|指定樣式|物件內容
//$("對象").css("樣式值")--讀取樣式
//$("對象").css("樣式名","樣式值")--指定樣式
//$("對象").css({"樣式名":"樣式值","樣式名":"樣式值","樣式名":"樣式值"})--指定多重樣式
var divObj={
"backgroundColor":"#332200"
,"width":"600px"
// ,"display":"none"
}
$("#content").css(divObj)//下方區塊的樣式
$("li").each(function(i,obj){
$(obj).mouseover(function(e){
//alert(this)
var bkColor=$(this).css("color")
$("#content").css("color",bkColor).fadeIn("slow");
})
$(obj).mouseout(function(e){
$("#content").fadeOut("slow");
})
})

})
</script>
</head>
<body>

<ul>
<li class="sel" id="item01" style="color:red">item01</li>
<li class="sel" id="item02" style="color:green">item02</li>
<li class="sel" id="item03" style="color:blue">item03</li>
<li class="sel" id="item04" style="color:yellow">item04</li>
<li class="sel" id="item05" style="color:black">item05</li>
</ul>
<section id="content" style="clear:both">
<div class="con" id="lorem01" align="center">
  <h1><img src="../../Adobe課程/DW_201904/DW0429/48414496_211785576370998_2662290896388620288_n.jpg" alt="" width="358" height="533" align="middle" /><strong>ときさきくるみ</strong></h1>
</div>
<div class="con2" id="lorem02">Ut animi non maiores sint placeat! Ullam hic quod dicta. Ex assumenda quo cum excepturi facere, obcaecati libero est amet. Eveniet asperiores laborum minus enim, placeat suscipit nulla? Nobis, necessitatibus.</div>
<div class="con3" id="lorem03">Quasi quas tempore ab voluptates? Iste rerum amet maiores voluptas odio, corporis error porro provident ullam sunt earum cumque molestias voluptate aspernatur quasi quae corrupti, fugit aperiam sint voluptatum reiciendis.</div>
<div class="con4" id="lorem04">Magni, eligendi modi nemo quae iste. Cum illo, a dignissimos deserunt, labore voluptatem neque reiciendis placeat eum molestiae accusantium blanditiis consequuntur! Excepturi in, perferendis debitis error deserunt vel unde aliquam.</div>
<div class="con5" id="lorem05">Provident esse facere adipisci quisquam modi ut rerum minus accusantium aliquam ea ex quidem, voluptatibus amet! Libero illum recusandae obcaecati consectetur, reprehenderit suscipit, aperiam odit, nulla molestias quos eius aliquam.</div>
</section>
</body>
</html>

jQuery 系列

<script type="text/javascript">

$(document).ready(function(){

alert("hello")

})

</script>





2021年5月19日 星期三

ZBrush 系列 Mask遮罩工具

按下『X』開啟X軸對稱模式
(如果無法開啟的話請到
Transform→ActivateSymmetry→X









 






新鮮人必知的勞動權益 課後測驗

  青年職涯發展中心的服務不包括哪一項? * 3/3 職涯諮詢 模擬面試 履歷健檢 找另一半   職業適性測驗 職涯講座 團體學習 企業參訪   通訊保障及監察法(通保法)適用對象為 * 10/10 兩者皆是   兩者皆非 公務員 民間從業人員   近期社會上Mee too事件頻...