PDA

View Full Version : code html


lobak
24-04-03, 08:02 PM
elo salam..

nak tanya sikit.. macam mana nak buat code html kalau cursor mouse kita point ke satu button website.. gambar button tu tukar jadi button lain.. lepas tu bile kita alihankan dari button tu.. dia kembali ke button asal.. macam mana ye??

p/s: code html ni berkenaan dgn onmouseover ?? mcm mana nak buat tu ??

TonDu
25-04-03, 02:01 AM
<!-- TWO STEPS TO INSTALL CHANGE IMAGE:

1. Paste the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT language="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->
</SCRIPT>
<!-- STEP TWO: Put this code into the BODY of your HTML document -->

<BODY>

<!-- Be sure to give each image a name! (<img name="button">)
Include that name in the onmouseover/onmouseout tags! -->

<CENTER>
<A HREF="http://javascript.internet.com"
onmouseover="movepic('button','pic-off.gif')"
onmouseout="movepic('button','pic-on.gif')">
<IMG NAME="button" SRC="pic-off.gif" ALT="Image"></A>
</CENTER>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.17 KB -->


ko kena ada dua gambar la kan...

tengok kat sini contoh dia..aku copy dari sini le.. http://javascript.internet.com/miscellaneous/change-image.html

C-Fumofufu
25-04-03, 06:26 AM
ade satu pon boleh

tapi limited la, macam satu ade shadow, satu invert ke, satu kelabu ke


camner? CSS power bebeh

Nenek Kebayan
02-05-03, 05:39 PM
Assalammualaikum wbt...

hehehe biasa kalo nak buat rollover image
nenek guna dreamweaver MX jek, tak yah nak codeČ
klikČ gitu jek....

:D

lobak
02-05-03, 07:21 PM
elo salam

trima kasih la sebab tolong..
nek.. saya pun guna DW MX juga.. cuma tatau kat mana nak set bende rollover tu.. nanti saya cube carik

overdose
02-05-03, 10:01 PM
cuba tengok website ni...ada banyak tips html kat sini.

www.dynamicdrive.com

C-Fumofufu
03-05-03, 06:53 AM
kalo kat dreamweaver camni:



1. klik kat gamba yang nak buat rollover tu
2. kat Menu, klik Window>Behaviours
3. klik kat +, klik kat Swap Image. pilih imej tu.
4. option preloader tu untuk load image rollover tu sebelum orang buat mouse over. slalu bad design tu orang buat mouse over, tapi bile mouse over baru imej tu die load. so ko pre-load la imej tu dulu kat belakang. orang tak sedar nyer :D
5. klik kat restore images on mouseout tu.
6. boh name c-fu.

dimiez
04-05-03, 12:22 AM
tul tu cfu.. behavior tu pon dah byk bende leh wat selain rollover.. open browser, call js, play sound etc.. yg penting blaja tutorial utk exploit sepenuhnya keupayaan dremw mx..

Fyna
13-05-03, 10:57 AM
korang..tolong la bgtau aku care2/step nak onlinekan web site yg kite wat....tolong la...aku baru blajo ni...tolong....plz....sape2 yg pandai tue...tolong...

lobak
13-05-03, 02:38 PM
Fyna

cuba rujuk kat laman web ni:

http://www.educ.upm.edu.my/~bas/3001/UploadFiles.htm