Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8868253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:13:40+00:00 2026-06-14T17:13:40+00:00

I have a strange issue here. I have a hidden element (display hidden) that

  • 0

I have a strange issue here. I have a hidden element (display hidden) that I want to show when I mouseover another element. The javscript seems to do the job, but still nothing happens when the element changes from display: hidden; to display: block;

This is my html part:

<div id="cart_block" class="block exclusive" style="display: none;">
    a bunch more code in here, but I don't suppose I need to display that
</div>

Since it is in a smarty tpl file i’ve used literal to the javascript. It looks like so:

<script type="text/javascript">
{literal}
    document.getElementById('header_user').onmouseover=function(){
        document.getElementById('cart_block').style.display='block';
    };
    document.getElementById('header_user').onmouseout=function(){
        document.getElementById('cart_block').style.display='none';
    };
{/literal}

You can see it at http://www.jiblab.dk . If you watch the element with id cart_block you should see that when you mouseover the basket in the top-right corner the style tag changes, but it stays hidden. If I remove style=”display: none” from the above html, it shows my element, so in my head this should work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:13:41+00:00Added an answer on June 14, 2026 at 5:13 pm

    the #cart_block element is in another div that has display:none set.

    The following block needs .top-header .sf-contener removing from the definition, either that or move the cart_block element out of this element

    .top-header #currencies_block_top, .top-header #header_links, .top-header #search_block_top, .top-header .sf-contener {
        display: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very strange issue, that I'm hoping someone here can help me
I have a strange issue that has arisen recently: Whenever I enter text, even
I have a fairly strange(IMO) issue here with a webservice provided by a third
I have a bit of a strange issue here. I created a custom control
I'm having a strange issue here, i have this bit of code: <?php if
We have here a strange issue. We have a comments form where users can
I have a strange issue with sending a mail with php, here is my
I have a strange issue with my css navigation menu. The code is here:
I have some strange issue using jQuery Validation plugin. Firs of all here is
I have a strange issue. It almost seems like a bug. if ($object->error) {Form::BuildReturn();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.