Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Tutorials and Tips (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=27)
-   -   ||Random codes you might find usefulell|| (http://www.mysidiaadoptables.com/forum/showthread.php?t=2508)

Poppy 11-06-2011 04:45 PM

||Random codes you might find usefulell||
 
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>


Hall of Famer 11-06-2011 05:27 PM

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?

Poppy 11-07-2011 06:40 AM

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.

Hall of Famer 11-07-2011 02:37 PM

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.

Poppy 11-07-2011 04:33 PM

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?

Hall of Famer 11-07-2011 05:10 PM

Alright, your wish is granted. Have fun Emily/Poppy.

Poppy 11-07-2011 05:12 PM

Thanks:smile:


All times are GMT -5. The time now is 10:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.