How to Retrieving css values via javascript?

Hi this is one of good solution from my side, If anybody find new solution give me & Introduce people.

<div id=”hideProperty” style=”display:none”>
Test Hide Script getting value in javascript via.
</div>

<script type=”text/javascript” language=”javascript”>

var GLOBAL_Hide = “none”;
//alert(GLOBAL_Hide);

var hideProperty = document.getElementById(‘hideProperty’).style.display;

if(hideProperty == GLOBAL_Hide){
alert(hideProperty);
}
else {
document.write(‘<style type=”text/css”>#hideProperty{display: block; }</style>’);
}
</script>

Here what you want? you can write above script inside. that is your knowledge.

How to Add contact form inside CMS Page in Magento?

You Add Below code in your cms page :

<p>{{block type=”core/template” name=”contactForm” form_action=”/contacts/index/post” template=”contacts/form.phtml”}}</p>

Then when you click the Submit that is going contact page. So, there you can view the contact form again. So, this time we can do this below css, put in your style.css

.contacts-index-index .col-main .page-title, .contacts-index-index .col-main #contactForm{
display:none;
}
.contacts-index-index .col-main #messages_product_view{
margin:70px auto 0 auto;
width:450px;
}

this is one of my method. If any prober way kindly inform me.

© 2020 Spirituality