||Random codes you might find usefulell||

Forum
Last Post
Threads / Messages

Poppy

|Ruler of Cats and Rats|
Member
Joined
Oct 11, 2011
Messages
21
Points
0
Mysidian Dollar
0
Some codes that I found that Mys members might find useful.
_________________________________________

HTML Codes

Basic HTML Page

Code:
<html>
<head>
<title>Your Page Title</title>
</head>
<body>

This area will contain everything that will be visible through a web browser, such as text and graphics. All of the information will be HTML coded.

For a complete list of HTML codes, tags and examples, see the HTML chart below.

</body>
</html>

Drop Down Menu

Found Here
Code:
<ul id="sddm">
    <li><a href="#" 
        onmouseover="mopen('m1')" 
        onmouseout="mclosetime()">Home</a>
        <div id="m1" 
            onmouseover="mcancelclosetime()" 
            onmouseout="mclosetime()">
        <a href="#">HTML Drop Down</a>
        <a href="#">DHTML Menu</a>
        <a href="#">JavaScript DropDown</a>
        <a href="#">Cascading Menu</a>
        <a href="#">CSS Horizontal Menu</a>
        </div>
    </li>
    <li><a href="#" 
        onmouseover="mopen('m2')" 
        onmouseout="mclosetime()">Download</a>
        <div id="m2" 
            onmouseover="mcancelclosetime()" 
            onmouseout="mclosetime()">
        <a href="#">ASP Dropdown</a>
        <a href="#">Pulldown menu</a>
        <a href="#">AJAX Drop Submenu</a>
        <a href="#">DIV Cascading Menu</a>
        </div>
    </li>
    <li><a href="#">Order</a></li>
    <li><a href="#">Help</a></li>
    <li><a href="#">Contact</a></li>
</ul>
<div style="clear:both"></div>

JavaScript Codes

Time and Date

Code:
<html>
<body>

<script type="text/javascript">

var d=new Date();
document.write(d);

</script>

</body>
</html>

Make This Your Homepage

Code:
<FORM>
<INPUT TYPE="button" VALUE="Make This Site Your Home Page" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('Page URL beginning with http:// here');">
</FORM>

Users Change Background Color
Found Here
Code:
<!-- this script got from www.javascriptfreecode.com-Coded by: Krishna Eydat -->

<p>[<a href="/"
onmouseover="document.bgColor='green'">Green</a>]<br>
[<a href="/"
onmouseover="document.bgColor='greem'">Bright Green</a>]<br>
[<a href="/"
onmouseover="document.bgColor='seagreen'">Sea Green</a>]<br>
[<a href="/"
onmouseover="document.bgColor='red'">Red</a>]<BR>
[<a href="/"
onmouseover="document.bgColor='magenta'">Magenta</a>]<br>
[<a href="/"
onmouseover="document.bgColor='fusia'">Fusia</a>]<br>
[<a href="/"
onmouseover="document.bgColor='pink'">Pink</a>]<br>
[<a href="/"
onmouseover="document.bgColor='purple'">Purple</a>]<BR>
[<a href="/"
onmouseover="document.bgColor='navy'">Navy</a>]<br>
[<a href="/"
onmouseover="document.bgColor='blue'">Blue</a>]<br>
[<a href="/"
onmouseover="document.bgColor='royalblue'">Royal Blue</a>]<br>
[<a href="/"
onmouseover="document.bgColor='Skyblue'">Sky Blue</a>]<BR>
[<a href="/"
onmouseover="document.bgColor='yellow'">Yellow</a>]<br>
[<a href="/"
onmouseover="document.bgColor='brown'">Brown</a>]<br>
[<a href="/"
onmouseover="document.bgColor='almond'">Almond</a>]<br>
[<a href="/"
onmouseover="document.bgColor='white'">White</a>]<BR>
[<a href="/"
onmouseover="document.bgColor='black'">Black</a>]<br>
[<a href="/"
onmouseover="document.bgColor='coral'">Coral</a>]<br>
[<a href="/"
onmouseover="document.bgColor='olivedrab'">Olive Drab</a>]<br>
[<a href="/"
onmouseover="document.bgColor='orange'">Orange</a>]<br>
<hr color="#00FFFF">
<font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>
 
This looks quite interesting, thanks for posting it. I don't think any active user here is quite good at JavaScript, so if you don't mind, posting some tutorials regarding JavaScript may be a good idea?
 
Well, I'm just figuring Javascript out myself, but I have a pretty good understanding of it so far(because some of it reminds me of Scratch, the program I downloaded a while back to make games:p) and might be able to put together a tutorial of how to make statements, explain variables and operators, etc, pretty much the basics which would help people figure these codes out.
 
I see, sounds quite interesting I must say. Javascript and PHP do have some similarities, once you grasp one you will find it much easier to learn the other. I started with simple C++ programming when I was younger, and I found PHP much easier to learn compared to C++. Javascript's syntax is more similar to the programming language Java though, while PHP's syntax finds its resemblance with C language. The challenge comes when you have to use two programming language interchangeably. For instance, assigning a variable in PHP and javascript are like a piece of cake, but how to use a pre-defined PHP variable in javascript and vice-versa, this is the challenge.
 
Yeah, it really helped me, I had startedbuilding an extremely simple battle script using Javascript, then I became stumped on how to subtract a certain amount from a variable when a button was clicked and rplace it with the original health, if thats possible. That does sound difficult, I'll just have to find a good tut some were when I get to a time I'm ready and read it a bunch of times :p. Oh, and I wanted to ask a favor. You being the admin, could you chang my screenname to Poppy for me, please?
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top