Simple Online Shop

This is our Web 2 project an online shop when I was a third year college student. Using PHP/HTML, CSS and using mySQL/Xampp as a database.


The HOME PAGE:


Creating iframe

The <iframe> tag specifies an inline frame. An iframe is used to display a web page within a web page.

Syntax for adding an iframe:
<iframe src="URL"></iframe>

When adding width and height:
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>


SAMPLE

save this project as index. html. You can open a notepad, dreamweaver or anything you want as long as it's compatible in making html or css code.

<html>
<head>
<style type="text/css">
*{
margin:0px;
padding:0px;
}
#main{
position:relative;
margin:10px auto;
width:95%;

}
h3{
text-align:center;
background:#fafafa;
}
#left{
width:25%;
background:gold;
}
#right{
position:relative;
float:right;
background:maroon;
width:75%;
text-align:center;
}
iframe.color{
width:95%;
margin:5px;
border:1px solid #131313;
height: 100%;
}
        li{
 padding: 0;
 margin: 0;
 border-bottom: 1px solid #1b1b1b;
 list-style-type:none;
 }
 
 li a{
 display: block;
 padding: 10px;
 background: black;
 text-align:center;
 color: white;
 text-decoration: none;
 }
 li a:hover{
 background: red;
 color: black;
 }

        li:nth-child(1) a:hover{
 background: red;
 }
 li:nth-child(2) a:hover{
 background: blue;
 }
 li:nth-child(3) a:hover{
 background: green;
 }
 li:nth-child(4) a:hover{
 background: white;
 }
 li:nth-child(5) a:hover{
 background: yellow;
 }
 li:nth-child(6) a:hover{
 background: pink;
 }
 li:nth-child(7) a:hover{
 background: purple;
 }
 


</style>
</head>
<body bgcolor="grey">

<div id="main">
<h3>IFRAME SAMPLE</h3>

<div id="right">
<iframe class="color" src="red.html" name="sampletarget">
</iframe>


</div>


<div id="left">
<ul>
<li><a href="red.html" target="sampletarget">RED</a></li>
<li><a href="blue.html" target="sampletarget">BLUE</a></li>
<li><a href="green.html" target="sampletarget">GREEN</a> </li>
<li><a href="white.html" target="sampletarget">WHITE</a> </li>
<li><a href="yellow.html" target="sampletarget">YELLOW</a> </li>
<li><a href="pink.html" target="sampletarget">PINK</a> </li>
<li><a href="purple.html" target="sampletarget">PURPLE</a> </li>

</ul>
</div>




</div>

</body>
</html>

now lets add another page to link it on our index.  Name this page as red.html
<html>
<head>

</head>
<body bgcolor="red">

</body>
</html>

still confused? you can download the the source code here Click Me


Creating a simple Manga Site

I am using the  manga WORKING. This is the output of this project




For this tutorial you need to know :
- HTML
- CSS
- Javascirpts

To download this full project Click Me

FIRST STEP:
Lets start with our HTML code. Open your notepad or dreamweaver and paste this code below. 

<html>
<head>
<title> Working </title>
<style type="text/css">

body{
background-color:#e8e8e8;
background: url(images/bg.png);
}

div#main{
background:#ffffff;
width: 900px;
height: 1582px;
box-shadow: 0 0 3px 3px #888;
}

div#cover{
background: url(images/head.jpg);
height:506;
border: 4px solid #ffffff;
}

div#home{
background:url(images/home.jpg);
height:1032px;
margin-top:508px;

}

div#down{
background: url(images/down.jpg);
width:892px;
height:38;
margin-top:90px;
margin-left:0px;
}

.button-link {
    font-family:Arial;
    text-decoration:none;
    padding: 10px 15px;
    background: #E4287C;
    color: #FFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 2px #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition-duration: 0.2s;
    -moz-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}
.button-link:hover {
    background: #b85768;
    border: solid 1px #ffffff;
    text-decoration: none;
}
.button-link:active {
    -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
    background:  #b85768;
    border: solid 1px #ffffff;
}



</style>
</head>


<body>
<center>
<div id="main">
<div id="cover">
<div id="home">

<a class="button-link" href="Chapters/Episodes/1.html" style="vertical-align:-935px;"> Read Manga Now!</a>

<div id="down">


</div>

</center>
</body>
</html>

save this file as index.html . Then create a new folder *name it any name you want, for example in my case, I name my folder as Working.


Simple Calculator Program using Microsoft Visual Basic

Here is the output of our simple calculator:


Here's the code:

Dim a, b, r As Integer
Dim opr As String

Private Sub add_Click()
a = Val(Text.Text)
opr = "+"
Text.Text = ""
End Sub

Private Sub clear_Click()
Me.Text.Text = " "

End Sub

Private Sub divide_Click()
a = Val(Text.Text)
opr = "/"
Text.Text = ""
End Sub

Private Sub equals_Click()
b = Val(Text.Text)
Select Case opr
Case "+": Text.Text = a + b
Case "-": Text.Text = a - b
Case "*": Text.Text = a * b
Case "/": Text.Text = a / b
End Select
End Sub

Private Sub Form_Load()

End Sub

Private Sub multiply_Click()
a = Val(Text.Text)
opr = "*"
Text.Text = ""
End Sub

Private Sub subtract_Click()
a = Val(Text.Text)
opr = "-"
Text.Text = ""
End Sub


 
My IT Life © 2011-2014|Gene Rose