DragonTooth™
(GUIDE) Dynamic Linking DragonToothBanner-4
DragonTooth™
(GUIDE) Dynamic Linking DragonToothBanner-4
DragonTooth™
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome To DragonTooth (GameDEV). Our Administrators: Emptrix, Amethyst, Shizuko~Conan, Yamino. To Contact Us, e-mail: Dragon_Tooth@live.com.
 
HomeLatest imagesSearchRegisterLog in
Welcome to DragonToothDEV Forum. We are currently not taking anymore new users, however we will accept users that has Friend's Recommendation. Members who's friends are joining please pm one of the Administrators the username of your friend's newly created account to get it activated.

 

 (GUIDE) Dynamic Linking

Go down 
AuthorMessage
Emptrix
Staff Administrator
Emptrix


Posts : 1218
Points : 1916
Reputation : 13
Join date : 2009-05-09
Age : 33
Location : The World That Never Was

(GUIDE) Dynamic Linking Empty
PostSubject: (GUIDE) Dynamic Linking   (GUIDE) Dynamic Linking EmptySat Feb 04, 2012 1:42 pm

1st Segment: This is basically the source of the Dynamic Link.
Paste this inside the
Code:
<head>
.
Code:
        <script type="text/javascript">

            function changeNavigation(id)

            {document.getElementById('main').innerHTML=document.getElementById(id).innerHTML}

        </script>

2nd SEGMENT: Use this to create a Hyperlink on your webpage.
Paste this inside your menubar.
Code:
<span id="navi" onClick="changeNavigation('home')"

                                      onMouseover="this.style.cursor='pointer'"

                                      onMouseout="this.style.cursor='default'">HOME</span>


3rd SEGMENT: Has 2 parts. 1st portion is the first/default Dynamic Link you wish to display.
Paste PORTION 1 & 2 inside your
Code:
<body>
. This will create a page. Whatever you paste in between the DIV will be displayed when clicked.
PORTION 1
In the 1st SEGMENT 'main' was defined as the default Dynamic Link.
Code:
<div id="main">
</div>

PORTION 2
From here onwards, this will display ONLY when you click the link.
Code:
<div id="srch" style="display:none;">
</div>
Back to top Go down
http://emptrix.tk
 
(GUIDE) Dynamic Linking
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
DragonTooth™ :: Help & Support :: Help & Requests-
Jump to: