Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    flash browser with new chat line

    i want to put in some code to flash the browser whenever a new chat line comes in my page. any tutorials or code you guys can help me with would be great.

  • #2
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    anyone? is there at least code that can change the title of the page to simulate the flashing so you know someone is chating?

  • #3
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nevermind guys, i figured it out myself. you can either use document.title = "New Chat" in some kinda timer that flashes, or just give the window focus and it will automatically flash it for you. dont know why i didnt think of this before.

    asp code:
    Code:
    if refreshchecker <> Session("CLINES") then
    	%>
    	<script language=javascript>
    		parent.window.focus();
    	</script>
    	<%
    end if

  • #4
    New Coder
    Join Date
    Jul 2005
    Location
    detroit area
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    DANG, its not working in firefox, anyone know why parent.window.focus doesnt work in firefox?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •