Ask Your Question By Comment We Will Give You Better Solution Soon

Tuesday 24 June 2014

JavaScript validation required field border changed

/////////////////////////////////////////Just Copy Past///////////////////////////////

<form name= "reg" id="reg" method="POST" action="http://www.qualityzoneinfotech.com/" onsubmit="return validate()">

   
    <input id="first" name="first" type="text" value="" placeholder="first"><br />

<input id="email" name="email" type="text" value="" placeholder="email"><br />

<textarea id="message" name="message" placeholder="message" ></textarea><br />
    <input type="submit"></button>
</form>

<script type="text/javascript">

function validate(){
    var formIsValid = true;
    var first=document.forms["reg"]["first"];
    if(first.value == null || first.value == ""){
        first.style.borderColor = "red";
        formIsValid = false;  
    }
 var email=document.forms["reg"]["email"];
    if(email.value == null || email.value == ""){
        email.style.borderColor = "red";
        formIsValid = false;  
    }
 var message=document.forms["reg"]["message"];
    if(message.value == null || message.value == ""){
        message.style.borderColor = "red";
        formIsValid = false;  
    }

    return formIsValid;

}
</script>

PoPup code in JavaScript for PHP

""""""""""""""""""" Just Copy And Past""""""""""""""""""""""""""

<style type="text/css">
/* popup DIV-Styles*/
#popup {
    display:none; /* Hide the DIV */
    position:fixed;
    _position:absolute; /* hack for internet explorer 6 */
    height:300px;
    width:600px;
    background:#FFFFFF;
    left: 300px;
    top: 150px;
    z-index:100; /* Layering ( on-top of others), if you have lots of layers: I just maximized, you can change it yourself */
    margin-left: 15px;
   
    /* additional features, can be omitted */
    border:1px solid #0000CC;    
    padding:15px;
    font-size:15px;
    -moz-box-shadow: 0 0 5px #ff0000;
    -webkit-box-shadow: 0 0 5px #ff0000;
    box-shadow: 0 0 5px #ff0000;
   
}

#main {
    background:#6699FF; /*Sample*/
    width:100%;
    height:100%;
}

a{
cursor: pointer;
text-decoration:none;
}

/* This is for the positioning of the Close Link */
#popupBoxClose {
    font-size:20px;
    line-height:15px;
    right:5px;
    top:5px;
    position:absolute;
    color:#6fa5e2;
    font-weight:500;    
}
</style>  
<script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>

<script type="text/javascript">
   
    $(document).ready( function() {
   
        // When site loaded, load the Popupbox First
        loadPopupBox();
   
        $('#popupBoxClose').click( function() {          
            unloadPopupBox();
        });
       
        $('#main').click( function() {
            unloadPopupBox();
        });

        function unloadPopupBox() {    // TO Unload the Popupbox
            $('#popup').fadeOut("slow");
            $("#main").css({ // this is just for style      
                "opacity": "1"
            });
        }  
       
        function loadPopupBox() {    // To Load the Popupbox
            $('#popup').fadeIn("slow");
            $("#main").css({ // this is just for style
                "opacity": "0.3"
            });        
        }      
    });
</script>  
<html>
<head>
<title>Quality Zone Infotech POPUPBOX </title>
</head>
<body>
<div id="popup">    <!-- OUR PopupBox DIV-->
    <span style="font-size:15px; color:#3333FF;">My Popup Is Working Fine Thanks Quality Zone Infotech</span>
</h1>
    <a href="http://www.qualityzoneinfotech.com/" id="popupBoxClose">close</a>  
</div>
<div id="main"> <!-- Main Page -->
    <h1>Thanks Quality Zone Infoech</h1>
</div>
</body>
</html> 

Sunday 15 June 2014

Display Message in Popup in php

<?php
if($status == 1)
           {
               echo '<script>alert("Thanks for submiting your query. We will get back to you in next 24 hours");</script>';
             
           }
           else{
 echo '<script>alert("Meassage has not submitted!");</script>';            

           }
?>

Tuesday 3 June 2014

Remove powered by kunena forum

Write this line in your css file

/*powerd by kunena hide*/
#Kunena + div{display:none !important}

After that Press Ctr+F5

if it will help you then comment must 

Monday 2 June 2014

500 error in joomla login form

Go to libraries/joomla/application/application.php
Comment this line
$this->triggerEvent('onUserLoginFailure', array((array) $response));

And set Change Permissions of this file 774
It will work fine and save your time