تغییر رنگ پاراگراف ها با هم
کد (تغییر رنگ پاراگراف ها با هم) شما با این کد میتوانید در سایت بین پاراگراف اول و پاراگراف دوم تغییر رنگ ایجاد کنید
این کد به این صورته که شما برای اینکه کاربران سایت بین خطوط اول و دوم اشتباه نکنن و بدونن که نشانگر موس روی کدوم پاراگرافه یک خط افقی روی پاراگراف ایجاد میشه…
توضیح بیشتر در تصویر زیر
[button link=”http://www.dl.codebazan.ir/uploads/1548449773.html” target=”_blank” icon=”momizat-icon-eye”]پیشنمایش کد[/button]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<!---کد زیر را در هد سایت خود قرار دهید---> <h1><a style="display:none;" href="https://www.codebazan.ir/">کدبازان</a></h1><script type=text/javascript> var ColorCode=new Array("e0f1ee","d6efff","646560","ffffcc","66ccff", "99ffcc","c0c0c0","669999","999966"); function ParaOver(CaoPhong){ CaoPhong.style.backgroundColor=ColorCode[Math.round(Math.random()*10)]; } function ParaOut(CaoPhong){ CaoPhong.style.backgroundColor="transparent"; } </script> </head> <!---کد زیر را در هر جایی که دلتون میخواد نمایش داده بشه قرار دهید-----> <body> <center> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 1</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 2</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 3</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 4</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 5</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 6</p> <p onmouseover=ParaOver(this) onmouseout=ParaOut(this)>تست 7</p> |