Javascript

JavaScript  - Part 2 Adding to a Web Page

<html>
<head>
<title>Javascript Project</title>
<script>
alert('Hello');

</script>
</head>
<body>
</body>
</html>

JavaScript  - Part 3 Fist Script

<html>
<head>
<title>Javascript Project</title>
<script>
//document.write() Simple Hello World Script
document.write('Hello World');

</script>
</head>
<body>
</body>
</html>

JavaScript  - Part 4 External File Support 

External File Support (javascriptExternalFile.js) no use of script Tag

<html>
<head>
<title>Javascript Project</title>
<script src='javascriptExternalFile.js'>
</script>

</head>
<body>
</body>
</html>

JavaScript  - Part 5 Data Types


<html>
<head>
<title>Javascript Project</title>
<script >
name= 'Devika';
document.write(name);
document.write(3+4+5);
</script>


</head>
<body>
</body>
</html>

JavaScript  - Part 6 Variables



<html>
<head>
<title>Javascript Project</title>
<script >
val_1= 2;
val_2= 3;
val_7= Hello;
val_9= World;
ans= val_1+val_2;
document.write(val_1+val_2);
document.write(val_7+' <br>'+val_9);
document.write(ans);
name= 'Devika';
document.write(name);
document.write(3+4+5);
</script>


</head>
<body>
</body>
</html>

JavaScript  - Part 7 Pop Up Box

<html>

<head>
<title>Javascript Project</title>
<script >

val_7= Hello;
val_9= World;

//alert(val_7+val_9);
name=prompt('Enter Your name', 'name' );
document.write('Hello dear <h2>'+name+'</h2> Welcome to my Site);
</script>

</head>
<body>
<button>Click here</button>
</body>
</html>


JavaScript  - Part 8 Math Operator & Assigning

<html>

<head>
<title>Javascript Project</title>
<script >
x= 7;
val_7= ++x;
document.write(' val_7 ');
val_1= 9;
val_2= 5;
val_3= 6;
val_3 *= ++val_2;
document.write(' val_3 ');
</script>

</head>
<body>
<button>Click here</button>
</body>
</html>

JavaScript  - Part 9 If Operator


<html>


<head>
<title>Javascript Project</title>
<script >

val_1= 9;
val_2= 5;
val_3= 6;

if (val_1== 9)
{
alert ('Everything is fine');

}

</script>




</head>
<body>
<button>Click here</button>
</body>
</html>


JavaScript  - Part 10 Comparison Operator

<html>

<head>
<title>Javascript Project</title>
<script >

val_1= 9;
val_2= 5;
val_3= 6;

if (val_2 < val_3)
{
alert ('Everything is fine');

}

</script>

</head>
<body>
<button>Click here</button>
</body>
</html>

JavaScript  - Part 11 If Else

<html>

<head>
<title>Javascript Project</title>
<script >

val_1= 9;
val_2= 5;
val_3= 6;

if (val_2 < val_3)
{
alert ('Everything is fine');

} else { 'Give book to his family members'};

</script>

</head>
<body>
<button>Click here</button>
</body>
</html>

JavaScript  - Part 11 Else if

<html>

<head>
<title>Javascript Project</title>
<script >

val_1= 9;
val_2= 5;
val_3= 6;

if (val_2 < val_3)
{
alert ('Give the book to boy');

} else if (val_1> val_3)
{

alert (' Give book to his elder brother');
} else if (val_1>val_2)

{
alert('Give book to mother');
} else

{
alert('Do whatever u want');
}

</script>






</head>
<body>
<button>Click here</button>
</body>
</html>


JavaScript  - Part 12 Logical Operators




<html>


<head>
<title>Javascript Project</title>
<script >
username='Devika';
password='test123';
email='gggttt@gmail.com';
if(username=='Devika'  && password='test123' || email='gggttt@gmail.com' && password='test123') {
document.write('You entered this page');

</script>






</head>
<body>
<button>Click here</button>
</body>
</html>


|| OR
&& AND
!  NOT




JavaScript  - Part 12 Logical Operators




<html>



<head>
<title>Javascript Project</title>
<script >
username='Devika';
password='test123';
email='gggttt@gmail.com';
if(username=='Devika'  )

{
document.write('You entered this page');
} else if  !(username=='Dvika') {

alert ('Enter right username');
} else if  !(username !='Devika') {

alert ('U again changed the value');
}

</script>




</head>
<body>
<button>Click here</button>
</body>
</html>


JavaScript  - Part 13 Nested If & Else

<html>


<head>
<title>Javascript Project</title>
<script >
shop= 'yes';
laptop= 'yes';
corei3= 'yes';
corei5= 'yes';
Ram_6GB= 'yes';
Ram_8GB= 'yes';
if (com_shop == 'yes') {
 if(laptop== 'yes') {
  if (corei3== 'yes'){
   if (Ram_6GB== 'yes'){

document.write ('Yay , we got our choiced laptop');


} else {document.write ('sorry there is no Ram_6GB');}



} else if (corei5== 'yes'){
          if (Ram_8GB==  'yes'){

{document.write (' there is  no corei3 but corei5 with ram_8GB');

} else if (ram_6GB== 'yes' ){document.write (' there is  corei5 laptop with ram_6GB');}


       else{

                document.write (' Sorry there is no corei5 laptop with ram_6GB');


}
    //{document.write (' there is  corei5');



}  else {document.write ('sorry there is no corei3');}



} else {document.write ('sorry there is no laptop');}



} else { document.write ('sorry there is no com shop');}

</script>






</head>
<body>
<button>Click here</button>
</body>
</html>

Javascript Part 17: Switch



<html>
<head>
<title>Javascript Project</title>
<script>
name = 'John';
switch (name){
case 'Devika': document.write('the name is Devika');
break;
case 'Kreetika': document.write('the name is Kreetika');
break;
case 'Radhika': document.write('the name is Radhika');
break;
case 'Madhu': document.write('the name is Madhu');
break;
default:document.write('there is no match of any case');
}


</script>
</head>
<body>
</body>
</html>



Javascript Part 18: For Loop



<html>
<head>
<title>Javascript Project</title>
<script>
for (x=0; x<10; x++){
document.write(x+'Hello World<br>');


}</script>
</head>
<body>
</body>
</html>



Javascript Part 19: Nested Looping



<html>
<head>
<title>Javascript Project</title>
<script>
for (y=0; y<10; y++){
document.write(''<b>+y+'Loop is working</b><br>');
  for (x=0; x<10; x++){
      document.write(x+'This is Sub Loop <br>');}
}</script>
</head>
<body>
</body>
</html>


Javascript Part 20: While Loop



<html>
<head>
<title>Javascript Project</title>
<script>
y=0;
while(y<10){
document.write(y+'This is  Loop <br>');
y++;
}</script>
</head>
<body>
</body>
</html>


Javascript Part 21: Do While Loop



<html>
<head>
<title>Javascript Project</title>
<script>
y=10;
do{
document.write(y+'This is  Loop <br>');
y++;
}
while(y<10)

</script>
</head>
<body>
</body>
</html>


Javascript Part 22: Creating Functions



<html>
<head>
<title>Javascript Project</title>
<script>
Function myFun() {

alert/document.write('This is my new Function');
alert / document.write(' 10+2 ');

}
myFun();
</script>
</head>
<body>
<button onclick="myFun();">Click here</button>


</body>
</html>


DB Connection Insert Display

DB Connection

@mysql_connect($host,$username,$password);
@mysql_select_db($dbname);

===========================================================

<?php
include'connection.php';

?>
<html>
<body>
<?php
$query=mysql_query("Select name,email * order by id desc from students_record whare name='xyz' LIMIT 5");
while ($result=mysql_fetch_array($query))
{
echo $result['name']."".$result['email']. "br";
}


?>
<input type="text" name='' " id= ""  value= "<?php echo$result['name'];?>"    />

</body>
</html>

==============================================================
<?php
$query=mysql_query("Select* from students_record order by joining date");
while($result=mysql_fetch_array($query))
{ ?>
<table border=1 cellpadding="10">
<tr>
<th>Name</th>
<th>Email</th>
<th>Address</th>
<th>Date</th>
</tr>
<?php
$query=mysql_query("Select * from students_record order by joining date");
while($result=mysql_fetch_array($query))
{?>
<?php
<tr><td><?php echo$result['name'];?></td>
<td><?php echo$result['email'];?></td>
}  ?>  </tr>

Mailer

<?php 

if(isset($_POST['submit']))
{
 
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$comments=$_POST['comments'];
$to="devika@cetpainfotech.com";
$headers="From:$name<$email>";
$message="Name:$name\n\n   Email:$email\n\n   Subject:$subject\n\n  Comments:$comment\n\n";

if (mail($to,$subject,$message,$headers))
{
 echo"Mail sent";
 
 
 
} 
else
{
 echo "Error: Try again later";

} 
 
 
}


?>

<!DOCTYPE HTML>
<html lang ="en-US">
<head>
<meta charset ="UTF-8">
<title>devika</title>
</head>

<body>

<form action="" method="post">
<p>Name<br/>
<input type="text" name ="name" id="" ></p>
<p>Email<br/>
<input type="text" name ="email" id="" ></p>
<p>Subject<br/>
<input type="text" name ="subject" id="" ></p>
<p>Comments<br/>
<textarea type="text" name ="comments" id="" cols="30" rows="10"></textarea></p>
<p>
<input type="submit" name ="submit" id="" value="Send Email"></p>

</form>
</body>
</html>
===============================================================================

<?php 
if (isset ($_POST['submit'])){
$f_name=$_FILES['myfile']['name'];
$f_tmp=$_FILES['myfile']['tmp_name'];
$store="uploads".$f_name;
if(move_upload_file($f_tmp,$store)){
echo"upload";
}



}?>
<!DOCTYPE HTML>
<head>
<title></title>
</head>
<body>
<form action="" method="post"  enctype="multipart/form-data">
<p>File<br/>
<input type="file" name ="myfile" id="" ></p>
<input type="submit" name ="submit" value="upload" id="" ></p>
</form>
</body>
</html>



PPC Common Quetions and Answers

  1. How to improve keyword quality score.
We have to work on three parameter to improve keyword quality score.
  1. CTR
  2. Ad relevancy
  3. Landing page experience
We have to make all this parameters above average.
  1. How to improve CTR
CTR monitor the performance of ads and keywords on the basis of imprassion and clicks
CTR: Total impression / total click
  1. Ad should be relevant with targeted keywords.
  2. Use ad customizer
  3. Use DKI ads
  4. Ad should be unique and attractive including   CTA terms (call to extension)
  5. Ad position should be top of the page
  6. Use full stop in description line 1
  7. Use negative keywords
  8. Use ad extension
  9. Use Rules.
  10. Create more ad copies in single ad group to test which ad copy preforming better terms CTR
  11. Bid should be top of the page
  12. Use target search page location bid strategy
  13. We can optimize delivery method

  1. How to improve ad relevancy   

  1. Ad should be relevant with target keyword
  2. Use coma phrases words in ad copy
  3. Use DKI ads
  4. Use customizer
  5. Ads should be unique and attractive
  6. Proper use of space
  7. Use title case in your words
  8.  Proper use of aberrations
  9. Avoid miss sapling in ad copies
  10. Proper use of punctuation
  11. Use ad extension


  1. How to use landing page experience
  1. Use AB testing
  2. Dynamic keywords insertion on landing page
  3. Use sub domain
  4. Url structuring
  5. Work on meta
  6. content optimization  
  7. use relevant images on landing page and use ALT or Title tags
  8. content should be original

  1. How to optimize campaign

  1. Work on campaign structuring (Ex according to product and servicing we will create sprat campaign or according to centaury state or city we will create separate campaign
  2. We will optimize ad group ad should be relevant with our targeting keywords as per keyword common theme we will create split adgroup accordingly.
  3. Create more ad copies in single adgroup to optimize which ad copy preforming better in terms of ctr, conversion, avg position, avg cpc
  4. Use DKI ads
  5. Use customizer ads in adgroups
  6. Ad all rules you have to mentions
  7. Test Keywords in different in match type (use one keyword all adgroups and use negative)
  8. Proper use of negative keywords
  9. Proper use of extensions
  10. Proper use of Flexible bid strategy
  11. Proper use of rules
  12. Optimize ad delivery methods (Ex: One we start getting conversions we will change optimize setting to test.)
  13. Use Remarketing.
  14. Impalement conversion tracking
  15. For mobile or computer we will create sprat campaign by locating different budget.

  1. How to improve ROI (Return of investment)

  1. Proper campaign optimization
  2. We will work on dimensions report (Geographic’s, search terms report, time report (hour of the day interval,), which are getting maximum conversions the according handle
  3. Devise analysis (from which device we are getting most of conversion)
  4. Which match type is preforming better
  5. Compotator analysis report (auction insight report) Accordingly  create out rank bid target outranking share strategy  
  6. Use flexible or automate rules in preforming keyword.
  7. Use remarketing to retarget our existing visitor to improve ROI
  8. AB testing to see which page is preforming
  9. Inquire form should be on header part
  10. Use chat option
  11. Use call to action terms
  12. Highlight more benefits or features
  13. Contact details on landing page
  14. Testimonial on landing page
  15. Social Persian on landing page
  16. Conversion tracking code
  17. We can opt other platform like display or YouTube network to improve ROI
  18. Improve keyword quality score
  19. We can show ads on relevant placement and accordingly we can bid on that
  20. We can show ads under the relevant apps tabs.