The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hey!
I want to make a little code that allows a little message to come up in the breadcrumb to display good morning, good afternoon, and good evening. I have the code: Code:
<script type="text/javascript">
var d = new Date()
var time = d.getHours()
if (time<10)
{
document.write("<b>Good morning,</b>")
}
else if (time>10 && time<16)
{
document.write("<b>Good afternoon,</b>")
}
else
{
document.write("<b>Good evening,</b>")
}
</script>
|
|
#2
|
|||
|
|||
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=139312" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=139312</a>
|
|
#3
|
|||
|
|||
|
Well, thanks, I didnt know someone already had that up. I was hoping for an explanation to why I was getting an error when I put that code in the header template, but I could just use his instead...
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|