Amaranth Games   Games   News   Order   Community   Help   Blog   Goodies   Updates   Guides Developers
Username:    Password:      Register now!
Game Genres
All Games
RPG
Adventure
SIM
Story
Cute
Game Kits
Amaranth Games (games only by us)
Newest Game
Featured Game
Book of Legends
Book of Legends
Popular Games


Browsing this Thread:   1 Anonymous Users

      Register To Post
(1) 2 3 4 »
5 room cottage with permanent links to all pages #1
Offline   shaz
  Administrator
gold   11479 Gold
Level : 68
EXP : 87
HP : 1696 / 1696
MP : 3999 / 26714
This is a very basic template for a cottage with 5 rooms, where the links to ALL rooms will always appear across the top like so:

Page 1 | Page 2 | Page 3 | Page 4 | Page 5

There is no fancy formatting.

To use, copy the text below into an editor and change the room contents. You can also change the Page 1, Page 2 in the top section to have different names (Books I Like, Movies I Like, etc)

------------------------------------------

<a href="#" onclick="toggleBlock('1', true); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false)">Page 1</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', true); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false)">Page 2</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', true); toggleBlock('4', false); toggleBlock('5', false)">Page 3</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', true); toggleBlock('5', false)">Page 4</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', true)">Page 5</a>



<div id="1" style="display: ;"><br />
<!-- add page 1 contents here (these will be seen by default when visiting your cottage) -->

This is the first page of my cottage

</div>

<div id="2" style="display: none;"><br />
<!-- add page 2 contents here (these will only be seen when clicking Page 2 in the links at the top) -->

This is the second page of my cottage

</div>

<div id="3" style="display: none;"><br />
<!-- add page 3 contents here (these will only be seen when clicking Page 3 in the links at the top) -->

This is the third page of my cottage

</div>

<div id="4" style="display: none;"><br />
<!-- add page 4 contents here (these will only be seen when clicking Page 4 in the links at the top) -->

This is the fourth page of my cottage

</div>

<div id="5" style="display: none;"><br />
<!-- add page 5 contents here (these will only be seen when clicking Page 5 in the links at the top) -->

This is the fifth page of my cottage
</div>

--------------------------------------------

And that's the end of your 5-room cottage. Now, I am going to place the same code again, but I'm going to add a sixth room. Everything here (in red) is added - nothing in the above has been changed or removed. This should make it easy for you to do the same should you want a 7th or 8th room or even more.

------------------------------------------

<a href="#" onclick="toggleBlock('1', true); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false); toggleBlock('6', false)">Page 1</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', true); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false); toggleBlock('6', false)">Page 2</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', true); toggleBlock('4', false); toggleBlock('5', false); toggleBlock('6', false)">Page 3</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', true); toggleBlock('5', false); toggleBlock('6', false)">Page 4</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', true); toggleBlock('6', false)">Page 5</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false); toggleBlock('6', true)">Page 6</a>




<div id="1" style="display: ;"><br />
<!-- add page 1 contents below (these will be seen by default when visiting your cottage) -->

This is the first page of my cottage

</div>

<div id="2" style="display: none;"><br />
<!-- add page 2 contents below (these will only be seen when clicking Page 2 in the links at the top) -->

This is the second page of my cottage

</div>

<div id="3" style="display: none;"><br />
<!-- add page 3 contents below (these will only be seen when clicking Page 3 in the links at the top) -->

This is the third page of my cottage

</div>

<div id="4" style="display: none;"><br />
<!-- add page 4 contents below (these will only be seen when clicking Page 4 in the links at the top) -->

This is the fourth page of my cottage

</div>

<div id="5" style="display: none;"><br />
<!-- add page 5 contents below (these will only be seen when clicking Page 5 in the links at the top) -->

This is the fifth page of my cottage
</div>

<div id="6" style="display: none;"><br />
<!-- add page 6 contents below (these will only be seen when clicking Page 6 in the links at the top) -->

This is the sixth page of my cottage
</div>

Posted on: 2008/1/30 15:32
_________________
While no trees were harmed in the transmission of this message,
thousands of pixels were inconvenienced.


Re: 5 room cottage with permanent links to all pages #2
Offline   sanshark
  Dragon Lords
gold   1182 Gold
Level : 31
EXP : 29
HP : 151 / 757
MP : 436 / 11922
Thx, Shaz this time I saved it to a file in my computer

Posted on: 2008/1/30 15:56
_________________


Friends Are A Reflection Of Yourself


Re: 5 room cottage with permanent links to all pages #3
Offline   v12967
  Dragon Lords
gold   1601 Gold
Level : 33
EXP : 96
HP : 164 / 824
MP : 536 / 12973
You are so awsome for giving your hard time for us ty so much wish I could pay you... Means alot

Posted on: 2008/1/30 19:17


Re: 5 room cottage with permanent links to all pages #4
Offline   shaz
  Administrator
gold   11479 Gold
Level : 68
EXP : 87
HP : 1696 / 1696
MP : 3999 / 26714
you've figured it out, but if anyone else is wondering the same question, look for the words "Page 1", "Page 2", etc, in the top block of code. You can put whatever you want in there and that's what will show as the link.

Victor, I'm just glad it's something you can use. Let me know if you want to expand it and are having troubles.

Posted on: 2008/1/30 23:01
_________________
While no trees were harmed in the transmission of this message,
thousands of pixels were inconvenienced.


Re: 5 room cottage with permanent links to all pages #5
Offline   bryan_pasa
  Amaranthian
gold   466 Gold
Level : 20
EXP : 29
HP : 0 / 482
MP : 160 / 7586
I am far at my cottage because my account is not remembered by this , and I am back to the very start .

Posted on: 2008/1/31 8:11


Re: 5 room cottage with permanent links to all pages #6
Offline   Catchoun
  Dragon Lords
gold   3538 Gold
Level : 46
EXP : 14
HP : 451 / 1128
MP : 1212 / 17767
Thanks so much Shaz, it will be very helfull to create a nice cottage I hope I'll manage ....

Posted on: 2008/1/31 15:55
_________________




Re: 5 room cottage with permanent links to all pages #7
Offline   theAdept_Rogue
  Dragon Lords
gold   2000 Gold
Level : 36
EXP : 97
HP : 179 / 899
MP : 666 / 14158
The links won't work!!! The page won't load

Posted on: 2008/1/31 18:04


Re: 5 room cottage with permanent links to all pages #8
Offline   Ailin
  Amaranthian
gold   31 Gold
Level : 4
EXP : 31
HP : 0 / 82
MP : 10 / 1304
Thanks shaz, I have no clue how to start a cottage so this is a great help to get me started. Very nice and thoughtful of you. =].

Posted on: 2008/1/31 19:52


Re: 5 room cottage with permanent links to all pages #9
Offline   shaz
  Administrator
gold   11479 Gold
Level : 68
EXP : 87
HP : 1696 / 1696
MP : 3999 / 26714
Remember that anything between <!-- and --> is actually a comment, so putting your code between those will have no effect on your cottage. You need to put your cottage contents in the spots where I've said "This is the first page...."


I have added an example, in the first post, of what to do to create a sixth room. Rather than explaining it, I've done it, highlighting the parts that I added. Hopefully this will make it easy for anyone who wants more rooms in their cottages. Just don't forget to add the extra semi-colons ; before the toggleBlocks in the links.

Posted on: 2008/2/4 16:40
_________________
While no trees were harmed in the transmission of this message,
thousands of pixels were inconvenienced.


Re: 5 room cottage with permanent links to all pages #10
Offline   Katarina
  Amaranthian
gold   8 Gold
Level : 1
EXP : 73
HP : 0 / 18
MP : 2 / 289
It worked but then you already knew that. This coding stuff is very interesting. If someone would be willing to teach me these things (basics) would love to learn. They could be implemented into my mothers computer for the bakery.It would help me help my parents.

Ty kat,

Posted on: 2008/2/5 8:09
_________________



Re: 5 room cottage with permanent links to all pages #11
Offline   g.satwik
  Amaranthian
gold   12 Gold
Level : 2
EXP : 25
HP : 0 / 31
MP : 4 / 480
well i saw the scripts but ii still didnt understand how to use those!!!!
can any 1 help me here?

Posted on: 2008/3/27 4:21
_________________
:

If our constitution allows us free speech, why are there phone bills?


Re: 5 room cottage with permanent links to all pages #12
Offline   shaz
  Administrator
gold   11479 Gold
Level : 68
EXP : 87
HP : 1696 / 1696
MP : 3999 / 26714
what scripts? Have you tried to use the code (you can just copy it and paste the whole lot into your cottage - see what words appear on each page, then you know where you need to change it)?

Perhaps a bit more of an explanation of what you're having trouble with would help.

Posted on: 2008/3/30 20:33
_________________
While no trees were harmed in the transmission of this message,
thousands of pixels were inconvenienced.


Re: 5 room cottage with permanent links to all pages #13
Offline   medieval
  Amaranthian
gold   26 Gold
Level : 3
EXP : 83
HP : 0 / 70
MP : 8 / 1060
Thanks. This will come in handy.

Posted on: 2008/5/5 21:35


Re: 5 room cottage with permanent links to all pages #14
Offline   SilverMist
  Enchanters
gold   3126 Gold
Level : 42
EXP : 77
HP : 417 / 1044
MP : 983 / 16417
This is a good post Shaz, and much easier than trying to PM the info.

Posted on: 2008/6/3 9:59
_________________



Re: 5 room cottage with permanent links to all pages #15
Offline   aislingyngaio
  Amaranthian
gold   14224 Gold
Level : 72
EXP : 36
HP : 2140 / 2140
MP : 4685 / 28087
A 5 room code for those who doesn't know where things should go:

<a href="#" onclick="toggleBlock('1', true); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false)">Insert your page 1 title here</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', true); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', false)">Insert your page 2 title here</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', true); toggleBlock('4', false); toggleBlock('5', false)">Insert your page 3 title here</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', true); toggleBlock('5', false)">Insert your page 4 title here</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', false); toggleBlock('4', false); toggleBlock('5', true)">Insert your page 5 title here</a>

<div id="1" style="display: ;"><br />Insert your page 1 content here</div>
<div id="2" style="display: none;"><br />Insert your page 2 content here</div>
<div id="3" style="display: none;"><br />Insert your page 3 content here</div>
<div id="4" style="display: none;"><br />Insert your page 4 content here</div>
<div id="5" style="display: none;"><br />Insert your page 5 content here</div>

Posted on: 2008/6/20 8:25
_________________

Visit the House of Ngaio today!
Free games, free RPG walkthroughs and more...


Re: 5 room cottage with permanent links to all pages #16
Offline   shaz
  Administrator
gold   11479 Gold
Level : 68
EXP : 87
HP : 1696 / 1696
MP : 3999 / 26714
nice. Mine was a little misleading. I think people sometimes added content where the comments were - understandably looking back at it.

Posted on: 2008/6/20 18:43
_________________
While no trees were harmed in the transmission of this message,
thousands of pixels were inconvenienced.


Re: 5 room cottage with permanent links to all pages #17
Offline   s_tyong
  Dragon Lords
gold   844 Gold
Level : 27
EXP : 75
HP : 133 / 668
MP : 326 / 10122
this was a little confusing at first (the code at the top) but i finally figured it out over....some time ago, ty shaz, it made a great deal of improvement on my cottage! ^^

Posted on: 2008/6/25 3:11
_________________
Fritz winks and tells you to take a ride on his back.







.


Re: 5 room cottage with permanent links to all pages #18
Offline   iyaemma34
  Amaranthian
gold   715 Gold
Level : 23
EXP : 25
HP : 0 / 556
MP : 216 / 8221
What if you only want 2-3rooms?

Do you use this,or something else?

Posted on: 2008/8/10 0:50
_________________



Re: 5 room cottage with permanent links to all pages #19
Offline   Lrcy333
  Dragon Lords
gold   1491 Gold
Level : 32
EXP : 53
HP : 157 / 788
MP : 481 / 11585
@iyaemma~ u still use this but if u just want 2-3 pg code ill give u this in a revised version, here~

<a href="#" onclick="toggleBlock('1', true); toggleBlock('2', false); toggleBlock('3', false)">Page 1</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', true); toggleBlock('3', false)">Page 2</a> | <a href="#" onclick="toggleBlock('1', false); toggleBlock('2', false); toggleBlock('3', true)">Page 3</a>

<div id="1" style="display: ;"><br />
<!-- add page 1 contents here (these will be seen by default when visiting your cottage) -->

((place everything for pg 1 in place of this))

</div><div id="2" style="display: none;"><br />
<!-- add page 2 contents here (these will only be seen when clicking Page 2 in the links at the top) -->

((place everything for pg 2 in place of this))

</div><div id="3" style="display: none;"><br />
<!-- add page 3 contents here (these will only be seen when clicking Page 3 in the links at the top) -->

((place everything for pg 3 in place of this))
</div>


-------------

there ya go but that is for a 3 pg cottage

Posted on: 2008/8/10 5:09


Re: 5 room cottage with permanent links to all pages #20
Offline   Oracle
  Dragon Lords
gold   6523 Gold
Level : 57
EXP : 34
HP : 845 / 1408
MP : 2272 / 22176
@aisling, I am interested in how you made the bold part of your code? I always look for your version of codes because it is so easy to see what to do, but how do you imbed a code into a code?

Posted on: 2008/8/10 18:44
_________________



(1) 2 3 4 »
      Register To Post
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]




Join our Newsletter!

RSS Feed

Coming Soon!

June, 2013

RPGs
Dragons Among Us
Edolie
Aveyond 4

Sandbox
Pixel Pygmies

Sim/Match 3
Butterfly Adventure

Kingdom Chat
Indra > 06/17 21:30:38[Indra] hello?
Aveyond Wiki
Click to Visit!
made by fans, for fans
Kingdom Map

(Laws)



(Forums)



(News)



(Art Gallery)



(Cottages)



(Guilds)



(Experiments)

Who's Online
50 user(s) are online (26 user(s) are browsing My Forum Entries)

Members: 0
Guests: 50

more...
About Us |  Sell Our Games |  Add Your Game to Our Site
©2007 Amaranth Games, LLC
Powered by Xoops