Jump to content

eddirae

Members
  • Content Count

    7
  • Joined

  • Last visited

Everything posted by eddirae

  1. Hello Vishal_N. I got your example to work as a standalone. The issue now is that I have this in a master file and it is not working. It opens all items.
  2. Thanks Vishal_N for your post. I am not seeing a CSS for the w3-bar-none. Could you elaborate on this, please? Eddi Rae
  3. Hello, Using the "Navigation Bar with Dropdown", I am creating a dropdown under another dropdown. When you run it, the dropdown under the dropdown shows as well. How do I have it so that it doesn't show until I hover over the sub dropdown? Here is the code <!DOCTYPE html> <html> <title>W3.CSS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <body> <div class="w3-container"> <h2>Navigation Bar with Dropdown</h2> <p>Add a dropdown menu inside the navigation bar:</p> <div class="w3-bar w3-light-grey"> <a href="#" class="w3-bar-item w3-button">Home</a> <a href="#" class="w3-bar-item w3-button">Link 1</a> <div class="w3-dropdown-hover"> <button class="w3-button">Dropdown1</button> <div class="w3-dropdown-content w3-bar-block w3-card-4"> <a href="#" class="w3-bar-item w3-button">Link 1</a> <a href="#" class="w3-bar-item w3-button">Link 2</a> <a href="#" class="w3-bar-item w3-button">Link 3</a> <div class="w3-dropdown-hover"> <button class="w3-button">Dropdown2</button> <div class="w3-dropdown-content w3-bar-block w3-card-4"> <a href="#" class="w3-bar-item w3-button">Link 4</a> <a href="#" class="w3-bar-item w3-button">Link 5</a> <a href="#" class="w3-bar-item w3-button">Link 6</a> </div> </div> </div> </div> </div> </div> </body> </html> Thanks in advance for your help!! Eddi Rae
  4. Foxy Mod, I got it to work!! Thanks for all of your help. This is the code that I used. Private Sub PlaySound() Dim scriptKey As String = "UniqueKeyForThisScript" Dim javaScript As String = "<script type='text/javascript'>var sound = new Audio('mp3/Ship_Brass_Bell.wav');sound.play();</script>" ClientScript.RegisterStartupScript(Me.GetType(), scriptKey, javaScript) End Sub
  5. I would love to, but I am crunched for time on this. I really need a solution on this, if you have one. Thanks!! Eddi Rae
  6. Thanks for the input Foxy Mod. This is very helpful. One question....How do I place the sound.play into the timer when the timer goes to zero? Below is the code for what I am doing. Protected Sub Timer1_Tick(sender As Object, e As System.EventArgs) Dim timer, timer_arr() As String timer = lblTimer.Text timer_arr = timer.Split(":") Dim seconds As Integer = Double.Parse(timer_arr(2)) Dim minutes As Integer = Integer.Parse(timer_arr(1)) Dim hours As Integer = Integer.Parse(timer_arr(0)) If seconds = 0 And minutes = 0 And hours = 0 Then PlaySound() Timer1.Enabled = False getNextLevel() Exit Sub Else seconds = seconds - 1 End If If (seconds < 0) Then seconds = 59 minutes = minutes - 1 End If If minutes < 0 Then minutes = 59 hours = hours - 1 End If lblTimer.Text = Format(hours, "00") & ":" & Format(minutes, "00") & ":" & Format(seconds, "00") End Sub
  7. Hello, I am trying to play a sound on the client side when the timer goes down to 0. It works on my local, but it isn't working when I place it on the server that I am running the website. Here is my code. Private Sub PlaySound() Dim strpath As String = Server.MapPath("mp3/Ship_Brass_Bell.wav") Dim sp_sm As SoundPlayer sp_sm = New SoundPlayer sp_sm.SoundLocation = strpath sp_sm.Play() End Sub I don't have any reference on the web page itself. Please let me know where I am going wrong with this. Thanks for your help in advance, Eddi Rae
×
×
  • Create New...