Need help with my website!

Krazyshank

New Member
I'm createing a site for a game called Realm Of the Mad God. It will be used by me and my friends.
I want it to include the game (its a browser based flash game) on the home page, and have tabs for its wiki and a price guide.
Games SWF:
http://www.realmofthemadgod.com/AGCLoader1331599726.swf
it runs at 800x600 on the official site, anything with the same ratio works

Wiki:
http://forums.wildshadow.com/wiki/realm-mad-god/equipment

Price Guide:
http://forums.wildshadow.com/node/36820
I want to take the contents of the guy's post and embed it, same layout, format, everything.

Here's the hard part:
I want it so there is a nav bar at the top like usual, but when you click the wiki tab, or price guide, or game tab, it doesnt load a new page. the game resets your location and everything when you go to a new page and go back, or reload it. So when you visit one of the open tabs, it needs to be still running in the background or whatever. I dont know how to do this. Any idea that keeps the game open and easily accessible whilst being able to glance at the other things quickly and easily is what I need. It could even open a pop up element the goes over the game kinda like the facebook photo system. That would be GREAT! Infact, prefered.

Thanks a lot. Any code snipets, or a template to edit is good. You could even reccumend a good free windows application website builder :)
 

Krazyshank

New Member
Ok i found out how to do it, but say i have the swf embeded in my site. I would like it so that when you go there, the swf DOESNT load, untill you click a button, which will then load it, but embedded on the site, not in a new window, or new page.
 

sshaggy

Member
You can use a simple HTML tag 'target="_blank"'. It will open the clicked link into a new tab/window. So, the page you are one will be left intact.

A simple example:
<a href="www.example.com/abcd.html">ClickMe</a>
This is a syntax of simple link, which will open the given page, when the text 'ClickMe' will be clicked.

Now consider this:
<a href="www.example.com/abcd.html" target="_blank">ClickMe</a>
This will do the same things, but the link will be opened in new tab.

You can use this method very easily.


EDIT: I see that you have already found the solution. :)
For clicking to launch the swf, here is a sample code, which you can match with your own code.

<object width="590" height="475">
<param name="movie" value="untitled_skin.swf">
<param name="play" value="false">
<embed src="untitled_skin.swf" width="590" height="475" type="application/x-shockwave-flash" play="false" flashvars="autoplay=false&play=false" menu="false"></embed>
</object>

Here, note, that there is a parameter called flashvars="autoplay=false&play=false" and <param name="play" value="false">. Yours code should look similar, and may have less or more parameters. Leave everything intact, and add the two codes in the same location. Shouldn't be that hard.
 
Last edited:
Top