For front end designing of website , use crackers play and blows gives most attractive websites. And also for festival or birthday wishes presenting , page background continuously display crackers fires , very attractive presents.
JavaScript Crackers code for website
In this article , we given JavaScript Crackers code, that can be suitable to all websites, and run all websites, and no need any server side script like php ,python, perl and also no need any database or PSD or video files requires. This Crackers code run any websites.
Even this code JavaScript Crackers code run in blogger websites also. Directly following code place at any page run end enjoy lot.
User Ask Question: I am Need to design HTML page with Button for password ask, script for my website design purpose.
Answers:
Generally all login form contains username , password enter options available , but some cases need to password after username available in database, that time only ask password, next check given username and password correct or not.
For this type of front design of any website use HTML, CSS, JavaScript code very suitable. In this article we provide some answers for Enter Username , next ask Password HTML page display.
Check following as design HTML page with Button for password
Login Form
You check online manual applying HTML Page with Button for password
Free Quiz code script suitable for all websites, even suitable for blogger website, here Quiz code given with HTML Quiz code Script. Here to create MCQ (Multiple Choice Questions)
Normally Blogger websites only support HTML, JavaScript , CSS code accepted to display any information, in this article given as HTML, JavaScript Quiz Code Script.
Advantages of Quiz Code Script
With this Quiz Code Script, we can create multiple Choice Questions/Answers, each Questions immediate check of Correct / Wrong answers immediately without any page refresh. And also has advantage of SHOW / HIDE answer with description.
Run this code any website even blogger websites also
All Blogger themes supports this code
No database or server requirements
Immediate check and Show Correct / Wrong Answers
Show Correct Answer and Explanations.
Model 1: Quiz code or MCQ Question Preparation
Sample one Question
Q1.Which of the following is the default page setup orientation for notes pages, outline and handouts?
A Vertical
B Landscape
C Portrait
D multiple
E All of above
Answer: C
Hint or Explanation
PowerPoint slides are automatically set up in landscape (horizontal) layout Landscape slide orientation , but you can change the slide orientation to portrait (vertical) layout. More info see here
Html Quiz Script
Following code for Quiz making of one Question given below
In the above example, change following code to your Question and answer requirements.
Normally
Type Question Here to of your Question.
Next change Wrong Answer and Correct answer of your option base.
Change number of option 4 or 5 or any one to your require.
Change correct answer (A/B/C/D/E)
Type Give complete Answer Explanation information here.
In the above code shows that among option A/B/C/D/E one option is Correct answer reaming options wrong so Right option one only use <input id="" ..> and <label for=" " > and all wrong answers no use id and for properties.
Note: for <input id ="name"..> and <label for="name"> , Here name should be same on that question, use any name but every question has unique name should maintain.
The output of above code as
From the above output shows Right answers gives Green color , Wrong answers click shows Red color.
Model 3: Free Online Exam Test Script with Marks Score for blogger or any website
Free online mock test html code useful to any blog developers like blogspot users and also useful to any website, because this script contains HTML code and JavaScript code only, it suitable to all websites. This script contains normal html tags and JavaScript business logic. So easy to add in your website also.
Features of Free Online Exam Test Script for blogger or any website
Immediate check answer whether it is wrong selection or right selection.
After select one answer for every question immediate display one popup dialog box to display information as its correct or wrong selection and what right answer and any message to that question is possible.
At finally have one Check Score button will be there, if click one that button, get how many score you got it.
Finally gives user messages as well done, Good, work hard based on marks secured points.
One more advantage for this code as if you select one radio button, next cannot change, first attempt final for that question, then display message as -"you already attempt this question"
HTML code for Free Online Exam Test Script
see below code as html add at body of your website or blogger.
<h2><u>MS Power Point Online Exam</u></h2>
<form>
<div align="justify">
<b>1.What are file formats supports for Power point show?</b></div>
A.<input onclick="CheckAns(1, this.value)" type="radio" value="A" />.jpg<br />
B.<input onclick="CheckAns(1, this.value)" type="radio" value="B" />.gif<br />
C.<input onclick="CheckAns(1, this.value)" type="radio" value="C" />.wav<br />
D.<input onclick="CheckAns(1, this.value)" type="radio" value="D" />All of above<br />
E.<input onclick="CheckAns(1, this.value)" type="radio" value="E" />None of these<br />
<br />
<div align="justify">
<b>2.Which of the following options does not exist in a slide layout?</b></div>
A.<input onclick="CheckAns(2, this.value)" type="radio" value="A" />Titles<br />
B.<input onclick="CheckAns(2, this.value)" type="radio" value="B" />Lists<br />
C.<input onclick="CheckAns(2, this.value)" type="radio" value="C" />Charts<br />
D.<input onclick="CheckAns(2, this.value)" type="radio" value="D" />Animations<br />
E.<input onclick="CheckAns(2, this.value)" type="radio" value="E" />Pictures<br />
<br />
<div align="justify">
<b>3.In slide layout panel how many layouts are available for text layout by default?</b></div>
A.<input onclick="CheckAns(3, this.value)" type="radio" value="A" />3<br />
B.<input onclick="CheckAns(3, this.value)" type="radio" value="B" />4<br />
C.<input onclick="CheckAns(3, this.value)" type="radio" value="C" />5<br />
D.<input onclick="CheckAns(3, this.value)" type="radio" value="D" />7<br />
E.<input onclick="CheckAns(3, this.value)" type="radio" value="E" />10<br />
<br />
<left>
<input onclick="Test_result()" type="button" value="Check Score" />
</left>
<br />
</form>
You observe above code contains 3 Questions, if you need more number of questions easy to add like above
JavaScript code for Free Online Exam Test Script
see below code
<link href='https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.15.1/sweetalert2.css' rel='stylesheet' type='text/css'/>
<script src='https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.15.1/sweetalert2.all.js' type='text/javascript'></script>
<script language="JavaScript">
var ans = new Array
var exp= new Array
var done = new Array
var score = 0
var tot_ques=3;
ans[1]='D';
exp[1]='MS power point supports .gif, .jpg, and .wav files';
ans[2]='D';
exp[2]='Basically Animation not supported';
ans[3]='B';
exp[3]='In MS Powerpoint 2003 and earlier versions, there are 4 Layouts are available by default for text layout.';
function CheckAns(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
swal({
title: 'You got it wrong!',
type: 'error',
html:
'Right answer is: <span style="color:#F8BB86">'+ ans[question] + '</span> <br><b><u>Info:</u></b> ' + exp[question] + '.',
showCloseButton: true,
showCancelButton: false,
confirmButtonText:
'<i class="fa fa-thumbs-up"></i> OK!',
cancelButtonText:
'<i class="fa fa-thumbs-down"></i>'
})
}
else {
swal("Sorry!", "You have already attempted this question!", "error");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
swal({
title: 'Well done!',
type: 'success',
html:
'Right answer: <span style="color:#F8BB86">'+ ans[question] + '</span> <br><b><u>Info:</u></b> ' + exp[question] + '.',
showCloseButton: true,
showCancelButton: false,
confirmButtonText:
'<i class="fa fa-thumbs-up"></i> OK!',
cancelButtonText:
'<i class="fa fa-thumbs-down"></i>'
})
}
else {
swal("Sorry!", "You have already attempted this question!", "error");
}
}
}
function Test_result() {
if (score == tot_ques) {
swal("Outstanding!", "You have scored 100%!\n Thank you for visiting us. Hope you have enjoyed it.\n Visit again for more quizzes updated regularly", "success");
}
else if (score >=2) {
swal("Good!", "You have scored " + score + " out of " + tot_ques + "\n Thank you for visiting us. Hope you have enjoyed it. \n Visit again for more quizzes updated regularly", "success");
}
else if (score <=1) {
swal("Work Hard!", "You have scored " + score + " out of " + tot_ques + "\n Thank you for visiting us. Hope you have enjoyed it. \n Visit again for more quizzes updated regularly", "success");
}
}
</script>
See in the above code , the red color indicates
var tot_ques=3;
From the above line , you can change total Questions given in this page
next, you can change: these 2 lines else if (score >=2) and if (score <=1)
of your requirements for the score point of view.
Output of the above model check it
MS Power Point Online Exam
MCQ Quiz Script FAQs
Q: How many Questions added in one page ?
A: There is no limit, but you can add in model 1, use n number of questions with n number of jQuery code, in model 2 have no jQuery so use more number of questions.
Q: How to immediate check right or wrong question?
A: Both model 1 , model 2 and model 3 MCQ Quiz scripts , have immediate check right or wrong questions click message, in model 1 shows message display (Correct/Wrong answer) , in model 2 shows green color gives correct answer meaning , where as red color shows wrong answer selection
JavaScript, CSS code for add Search Box at bottom right side
When visitors come to your website, he can look his/her need of content available at that page, if not leave the site, cannot wait for look search links or menu items. For that problem, when attach fixed search box at right side, he may search for his requirements.
That search box also display only scroll page certain lines, auto display search box. So visitors easy stay some more time, and search his requirements. Finally more number of pages utilize.
CSS code for Search box display at bottom right corner
Following code as CSS code can insert at <Head> section
In the above example code to display search box with <div> id as mySrn ,it will display search box as stylish decoration and add javascript code as follows , see the Search box only appear at scrolling of certain lines over.
JavaScript code for Search box at bottom right Side
Following code shows JavaScript runtime code works only when the page scrolls bottom , this code add immediate after HTML code
<script>
// When the user scrolls down 20px from the top of the document, show the Search box
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("mySrn").style.display = "block";
} else {
document.getElementById("mySrn").style.display = "none";
}
}
</script>
In the above code ,see as observation- When the user scrolls down 20px from the top of the document, show the Search box
Add Page Scroll to Top button is most generally an image or an icon placed on the bottom of a web-page which has a long content which has to scroll down for a long time to read. This type of websites or web-pages will include a scroll to top or back to top button which scrolls you to the top of the web page automatically in a bit of a second.
If a page contains more content , easily visitor goes to bottom, again read one more time or need to top location of this page, normally use mouse scroll button in computer, but in mobile or tab screen , you can immediate goes to top location very hard or time expensive , so here in this article we explain and use Free adding Page scroll to top button for blogger websites.
Benefits for Page Scroll to Top Button
Easily move to Top Position of page within second.
Simple javaScript code to add at a Gadget location
No programming knowledge require
Here easy to Change Custom button models, colors, and Shape.
Steps to Setup a Page Scroll to Top Button for blogger websits
Here we explain simple steps to How to Add Page Scroll to Top Button for Blogger websites, directly place code of javascript and html to one location .
Step 1: First Login to Blogger website. Click Here
Step 2: Go to Layout option in blogger .
Step 3: Now Click on Add a Gadget
Step 4: Now Select HTML/JavaScript.
Step 5: Here appear/open one dialog box, Now Leave Title Portion
Step 6: Now paste the following code on below content on the dialog box
Step 7: Now Click on SAVE button and also SAVE Arrangement
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous" />
<style>
#myBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
color:darkblue;
border: none;
outline: none;
cursor: pointer;
}
#myBtn:hover {
color:red;
box-shadow: inset 0 0 0 3px #3a7999;
border-radius: 100%;
}
</style>
<i class="w3-xxlarge fas fa-arrow-circle-up" onclick="topFunction()" id="myBtn" title="Go to top"></i>
<script>
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
See Observation , In the above code we change Custom appearance of button placed.
(1) In the code, highlighted redis the color of the button you can change red to any other color by editing it.
(2) And also Dark Blue is the color you will see when you hover the cursor on the button or place the mouse cursor on top of the button. You can edit it by changing Dark Blue.
(3) Change Shapes: Easily you can change icons. In the above code Yellow color code change with different others code, see some of different code, listed below
Actually, blogger website page hyperlinks click opens a current location window. If you need to open one of the links to a new window or tab, you choose mouse to right-click, then choose open new window, but in the mobile device can work very problem.
To overcome that problem, we use auto open new tab or window, every time click on the link. For these use HTML code as the target property to hyperlink. See below code
<a href=" ..." target="_blank"> Link title</a>
Most important benefit: When readers open new content in the new tab, then the previous post remains open in an older tab, as a result, it reduces bounce rate. So that by using this method, open a number of blog posts in new tabs or windows, result increasing readers' engagement posts.
>> Read more information as Bounce rate and meaning and benefits Click Here
There are 2 methods to use Site Links auto-open when clicking on the link to a new tab or window in blogger website solutions.
All links including category links, page titles, external, internal, and hyperlink- auto open new tab or window.
Only Blog post to open new tab or window
Method 1
All links to open new tab or window
All Links to open new tab or window, we use to <base> tag. That can include in <head> section of Html source code.
Html code for <base> tag
<base target='_blank' />
Note: If you construct your blog heavily using hypertext, you really want your readers to have to close a window each time they finish reading a linked article in your blog.
Method 2
Open Category post title to open new tab or window
Only Every Category post page to click that page to open a new tab or window. We follow the following steps.
Setp 2: From Blogger Dashboard Click on Theme >> Customize >> Edit HTML
Step 3: Now Search the following code
<a expr:href='data:post.link'><data:post.title/></a>
Note: above code do not change
Step 4: Then After the following code search
<a expr:href='data:post.link'><data:post.title/></a>
Now replace following code to the above code
<a expr:href='data:post.link' target='_blank’ ><data:post.title/></a>
Step 5: Then After the following code search
<a expr:href='data:post.url'><data:post.title/></a>
Now replace following code to the above code
<a expr:href='data:post.url' target='_blank’ ><data:post.title/></a>
Now all links in the page , when click on links it auto open new tab or window, it includes the links as menu links, category posts, related post, popular post links and any more open new tab then click on it.
For decorative of your photo with border image (like photo frame) is necessary in number of websites. To display your photo as attractive photo frame use following CSS code, HTML code.
Photo Frame model
Most important photo is decorative to border color or border image. To see that photo very attractive. Some photo add thick color around the photos or images, some photos attach border as image, so it very impressive to see.
see below image.
Add border color to the photo
The following code as CSS shows to add border color around image
#borderimg1 {
border: 5px solid #555;
}
In the above code border has 3 property values assign. more info see
At run time we need auto select radio button when one of the input fields focus like textfield, textarea, file, selection option like all fields selected. The jQuery or ajax are best suitable to work with this.
Now i am explain with jQuery code auto selected when focus one of the field
Html code for Auto Select radio button, when focus text field
<fieldset> <legend>Select Text Field or choose file button</legend> <input type="radio" name="mr" value="1" checked> <input type="file" name="dataFile" id="fileChooser"> <br/> <input type="radio" name="mr" value="2"> Direct Enter full path of image <input type="text" id="target" name="dataFile"> </fieldset>
jQuery code for Auto Select radio button, when focus text field
When one of the HTML element Select option choose , the auto hide or show div tag , In Selection html element contains number of option are there. If one of the select option choose or changes then automatically div element box auto show or hide immediately without total page not update.
The total page refresh is not best practice so that you should display or hide any html element immediate without page refresh.
Sample HTML code for auto hide or show div tag
<Select id="colorselector">
<option value="red">Red</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
</Select>
</form>
<div id="red" class="colors" style="display:none"> Red color div </div>
<div id="yellow" class="colors" style="display:none">yellow color div</div>
<div id="blue" class="colors" style="display:none"> blue color div </div>
For own developing website designers looking for comments display option in every page. In this article add PHP code for comment box script in PHP with Reply option and approve by admin. Every comment submitted by user, it will hole and need approve by admin, even reply comment also. Normally most of websites have auto approve comment code, or script in the form of jQuery, Ajax it will complex.
The Comment box generated in php language, no need jquery, Ajax. This simple comment box with reply answer in php and comment approve by admin features supported ,following code. Basically If you use of jQuery and AJAX , code very complex for use and working. Every comment must approve or moderate by admin only.
Each comment also support Reply answer either admin or user. In some other website contains comment box with Reply answer there. But that comment auto submit to page, no moderating or delete or edit option. In this article we clear explain as simple comment box in php with Reply answer and comment approve by admin.
Features of Simple Comment Box with Reply Answer
Simple php code uses, no need of jQuery and AJAX code
Each comment uniquely identified by url i.e each page can maintain separate comments
All comments and Reply comments must be approve or moderate by admin only
User comments accept or delete or edit comment options available.
One MySql table suitable for all works (Comments and Reply comments)
One php code for comments display, One for creating comments.
Auto focus available for Auto Reply comments.
Steps to Creating Comment Box with reply
Creating table ( tbl_comment.sql )
Comment box html code include Insert query ( commentbox.php )
Comments display php code with beautiful model css code inline tag ( commentlist.php )
By using of following php code , we can perform accept or reject or delete or edit comments.
<?php
include_once 'dbsetting.php';
if (isset($_REQUEST['delete'])) {
if(executeQuery("delete from tbl_comment where cid=".$_POST['edit'].";"))
{
$message = "successful Deletion your comment";
}
else
{
$message = mysql_errno();
}
} else if (isset($_REQUEST['savem'])) {
$query = "update tbl_comment set name='".$_REQUEST['name']."', email='".$_REQUEST['email']. "',comment='".$_REQUEST['comment']."',moderate = 1 where cid='".$_POST['edit']."';";
if (!@executeQuery($query))
$message = mysql_error();
else
$message = "User Information is Successfully Updated.";
}
?>
<?php
echo "<h2>" . $message . "</h2>";
if (isset($_REQUEST['edit'])) {
// To allow Editing comments
$result = executeQuery("select * from tbl_comment where cid = ".$_GET['edit'].";");
if (mysql_num_rows($result) == 0) {
header('Location: permission.php');
} else if ($r = mysql_fetch_array($result)) {
The following php code as dbsetting.php used to setting of data base and apply executeQuery( ) userdefined method also
<?php
$dbserver="localhost"; // change as your servername
//username of the MySQL server
$dbusername="sivaramaiah";
//password
$dbpassword="bestvwant";
//database name of the online Examination system
$dbname="bestwant";
$conn=false;
function executeQuery($query)
{
global $conn,$dbserver,$dbname,$dbpassword,$dbusername;
global $message;
if (!($conn = @mysql_connect ($dbserver,$dbusername,$dbpassword)))
$message="Cannot connect to server";
if (!@mysql_select_db ($dbname, $conn))
$message="Cannot select database";
$result=mysql_query($query,$conn);
if(!$result)
$message="Error while executing query.<br/>Mysql Error: ".mysql_error();
else
return $result;
}
function closedb()
{
global $conn;
if(!$conn)
mysql_close($conn);
}
?>
A: No, This Comment box generated in php language, no need jquery, Ajax. This simple comment box with reply answer in php and comment approve by admin features supported.
Q: Can you idetifies comments uniquely to each post?
A: Yes , User post any comment, admin can accept or reject and that comment uniquely identifes by post name i.e post url.
Q: How much memory require to use database?
A: In this comment box script use MYSQL database ,in that one tabel , that contains 9 paraneters. Here use less memory.
Q: Is this script run at mobile phone like Android or iphone?
A: Yes, this script run on any device like desktop computers, all mobile phones and tabs also.