Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Javascript Help Please!


  • Please log in to reply

#1
Emory

Emory

    Member

  • Member
  • PipPip
  • 33 posts
:D On my site, im trying to make a mouseover news scroller. I've got the mouseover to what i want, but I cant get the scroller to work. I've worked on it for 3 days now and am not getting anywhere. Heres what i have for the variable:
<script language="javascript"> 
var info="<div style="Z-INDEX:2;LEFT:10px;VISIBILITY:visible;WIDTH:130px;POSITION:absolute;TOP:35px;HEIGHT:100px" ><marquee behavior="scroll"direction="up" width="125" height="100" scrollamount="1" scrolldelay="60">" + 
"<font face="verdana" size="1">" + 
"<B>Updated 7:50pm 6.7.04</b><br><br>Latest news<br><br><b>" + 
"<font color=#FFFFF> Site is up</font></b>" + 
"</marquee>"; 
</script>
then the mouseover i have:
onMouseOver="document.write(info)"
but it wont show up. Someone please help or atleast tell me if its even possible. Thanks <_<
  • 0

Advertisements


#2
ditto

ditto

    - i pwn n00bs -

  • Member
  • PipPipPipPip
  • 1,260 posts
sorry, dont know java script too well but i found this site

http://javascript.in...roller-2.0.html

ditto

ps- sorry for the delay, i was away last week and didnt see your post
  • 0

#3
azarl

azarl

    GeekU Admin

  • Community Leader
  • 25,310 posts

Create a hidden element element with the content inside it

<script type="text/javascript">
function show_myElement()
{
document.getElementById('myElement').style.visibility="visible";
}

function hide_myElement()
{
document.getElementById('myElement').style.visibility="hidden";
}
</script>

<div id="mouseTarget" onMouseOver="show_myElement()" onMouseOut="hide_myElement()">Hover mouse over here</div>
<div id="myElement" style="visibility:hidden" ><marquee>Updated 7:50pm 6.7.04<br>
Latest news<br>
Site is up</marquee></div>

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP