Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Html And Javascript, Not php as first indicated...
apollo
post Jan 23 2006, 12:43 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 68
Joined: 22-January 06
From: Latvia, Ogre
Member No.: 17,468



Edit your ScrollBar colors
Change "Your color", to color code, that u need.

CODE
<STYLE type="text/css">
<!--
BODY {
scrollbar-face-color: Your color;
scrollbar-highlight-color: Your color;
scrollbar-3dlight-color: Your color;
scrollbar-darkshadow-color: Your color;
scrollbar-shadow-color: Your color;
scrollbar-arrow-color: Your color;
scrollbar-track-color: Your color;
}
-->
</STYLE>


user posted image


Insert Date

Place this code between <HEAD>, </HEAD> tags
CODE
<script language=Javascript>
<!--
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getYear()"

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
// -->
</SCRIPT>


Place this code where you'd like the date to appear.
CODE
<script language=Javascript>
<!-- document.write(months[month]+" "+today+", "+year)
// -->
</SCRIPT>



Status bar text
Change TExt no. 1.,2.,..6., to your text.

CODE
<script language=JavaScript>

var speed = 100

var pause = 3000

var timerID = null

var bannerRunning = false

var ar = new Array()

ar[0] = "Text No. 1"

ar[1] = " Text No. 2"

ar[2] = "Text No. 3"

ar[3] = " Text No. 4"  

ar[4] = "Text No. 5"

ar[5] = " Text No. 6"

var currentMessage = 0

var offset = 0

function stopBanner() {

if (bannerRunning)

clearTimeout(timerID)

bannerRunning = false

}

function startBanner() {

stopBanner()

showBanner()

}

function showBanner() {

var text = ar[currentMessage]

if (offset < text.length) {

if (text.charAt(offset) == " ")

offset++

var partialMessage = text.substring(0, offset + 1)

window.status = partialMessage

offset++ // IE sometimes has trouble with "++offset"

timerID = setTimeout("showBanner()", speed)

bannerRunning = true

} else {

offset = 0

currentMessage++

if (currentMessage == ar.length)

currentMessage = 0

timerID = setTimeout("showBanner()", pause)

bannerRunning = true

}

}

startBanner();

// -->

</SCRIPT>


Protect Your Web Page Content


CODE
<script language="JavaScript">
<!--
var message=" YOUR TEXT GOES HERE";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</SCRIPT>


This post has been edited by jlhaslip: Jan 27 2006, 08:23 AM
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 23 2006, 01:04 PM
Post #2



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(apollo @ Jan 23 2006, 10:43 PM)
Edit your ScrollBar colors

Keep in mind that this is MS proprietry (read non-standard) code and doesn't work in other browsers.
Go to the top of the page
 
+Quote Post
apollo
post Jan 23 2006, 03:26 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 68
Joined: 22-January 06
From: Latvia, Ogre
Member No.: 17,468



Oh really? Ok, didn`t know, cus i`m using IE for all the time, not Firefoz or sth liek that... Thnx
Go to the top of the page
 
+Quote Post
webmaster_2006
post Jan 23 2006, 04:22 PM
Post #4


Newbie [Level 3]
***

Group: Members
Posts: 49
Joined: 23-January 06
From: Ohio
Member No.: 17,482



Yes, it mostly only functions in Internet Explorer. However, could tutorial, as I am sure that some beginners will find this little tutorial very easy to follow!
Go to the top of the page
 
+Quote Post
Lozbo
post Jan 25 2006, 01:36 AM
Post #5


Super Member
*********

Group: Members
Posts: 282
Joined: 1-September 05
From: Wanatos
Member No.: 11,382



That status bar scroller, does it only work for IE? I cant see it in Firefox...
Go to the top of the page
 
+Quote Post
Albus Dumbledore
post Jan 25 2006, 01:40 AM
Post #6


Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand...
**************

Group: Members
Posts: 1,523
Joined: 8-January 06
From: Sacramento California
Member No.: 16,756



nnope the script does not work in firefox, they have their own preset scrollbar that keeps it the same color no matter what
Go to the top of the page
 
+Quote Post
Hamtaro
post Jan 25 2006, 01:43 AM
Post #7


Super Member
*********

Group: Members
Posts: 372
Joined: 14-October 04
Member No.: 1,736



I found that out the hard way that it only works in Interneet Explorer by messing with it while using Firefox. Anyway, if JavaScript is diabled in the browser, those scripts won't work. I don't recommend relying on JavaScript to do those things. You can print the date in PHP if you really wanted the date on a page, and not rely on JavaScript..
Go to the top of the page
 
+Quote Post
Amezis
post Jan 26 2006, 06:19 PM
Post #8


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



QUOTE(Tyssen @ Jan 23 2006, 03:04 PM)
Keep in mind that this is MS proprietry (read non-standard) code and doesn't work in other browsers.
*


Yes, it does work in Opera too wink.gif

By the way, those scripts are only CSS and Javascript, not HTML or PHP tongue.gif

(merged)
Go to the top of the page
 
+Quote Post
Tyssen
post Jan 26 2006, 11:08 PM
Post #9



***********

Group: Members
Posts: 1,161
Joined: 9-May 05
From: Brisbane, QLD
Member No.: 6,818



QUOTE(Amezis @ Jan 27 2006, 04:19 AM)
Yes, it does work in Opera too wink.gif

Which version? Doesn't work in 8.5.