Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fd22

Members
  • Joined

  • Last visited

Everything posted by fd22

  1. Hello guys! im new and i want to see if someone can help me. Im making a dropdown menu with divs hidden, the thing is, when the mouse is over a button the id changes so the background becames white and the text blue, and the hidden div appears with it's content, we are fine until here, but my issue begins when i move the mouse over the new div, the button returns to it's original id, and i want it to remain in the "hover" id. Here is the code: CSS: #cergen a:link{display:inline-block;height:20px;float: right;text-align:center;padding: 2px 5px 0 5px;margin: 0 0 0 10px;text-decoration: none;font-size:12px;color:#FFF;} #cergen a:visited{display:inline-block;height:20px;float: right;text-align:center;padding: 2px 5px 0 5px;margin: 0 0 0 10px;text-decoration: none;font-size:12px;color:#FFF;} #cergen a:hover{display:inline-block;height:20px;float: right;text-align:center;padding: 2px 5px 0 5px;margin: 0 0 0 10px;text-decoration: none;font-size:12px;color:#0059C4;background-color:#FFF;} #cergen a:active{display:inline-block;height:20px;float: right;text-align:center;padding: 2px 5px 0 5px;margin: 0 0 0 10px;text-decoration: none;font-size:12px;color:#0059C4;background-color:#FFF;} #div1 { position:absolute; width:150; visibility:hidden; margin-left: 90px; } JAVA: function toggleDiv(id,flagit) { if (flagit=="1"){ if (document.layers) document.layers[''+id+''].visibility = "show" else if (document.all) document.all[''+id+''].style.visibility = "visible" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible" } else if (flagit=="0"){ if (document.layers) document.layers[''+id+''].visibility = "hide" else if (document.all) document.all[''+id+''].style.visibility = "hidden" else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden" } } HTML: <div id="cergen"><a href="#" onmouseover="toggleDiv('div1',1)" onmouseout="toggleDiv('div1',0)">Cergen</a></div> <div align="center" id="div1" onmouseout="this.style.visibility='hidden'" onMouseOver="this.style.visibility='visible'"> <div id="sub-menu-contenedor"> fede<br/> fede<br/> fede<br/> fede<br/> </div> </div>

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.