View Full Version : Need some basic coding help!
NewbieMe
16-03-2011, 10:43 PM
This is for a completely unrelated habbo website but since i was on this forum before when i played habbo i though it would be the best play to ask =D
They are only basic things i need doing so if someone can help please add me to msn
[email protected] because im completely useless and if i try and ill mess the whole thing up and have to start all over again =D
Thanks
Mark
Trinity
16-03-2011, 10:48 PM
Why take it to msn? Post what you need help with here and we'll help you out.
Homosexual
16-03-2011, 10:57 PM
Added you, Mark. Although, I do agree with Trinity, you could've posted your problem here and it would've been fixed.
NewbieMe
16-03-2011, 11:03 PM
Just thought it would be easier to explain and show on msn rather than on here, i can try and post it on here but it might not make sense haha
Homosexual
16-03-2011, 11:04 PM
Okay, NewbieMe.
NewbieMe
16-03-2011, 11:21 PM
Right okay here goes nothing =D
What i need is
- For each of the links when you click on them just the content box to refresh.
- Some way of posting news/updates easy, but for it to be short snippet then once clicked on that it takes you to the news and update page.
- and to link the pages up haha.
Once I've got that under control im pretty sure i can figure out the rest.
Heres the code.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Heritage Stud</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>Heritage Stud</h1>
<h2></h2>
</div>
<div id="menu" style="WIDTH: 800px; HEIGHT: 44px">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#" >Animals</a></li>
<li><a href="#">News/Updates</a>
<li><a href="#">For Sale</a>
<li><a href="#">Rescue</a>
<li><a href="#">Links</a>
<li><a href="#">Contact Us</a>
</li>
</ul>
</div>
<div id="content">
<div id="right">
<div class="post">
<h2>Welcome to Heritage Stud. </h2>
<p>Text to go here =D
hgjggggggggggggggggggggggggggggggghjhgj </p>
</div>
</div>
<div id="left">
<h2>Recent Updates</h2>
<p>Updates to go here =D
hjkhjkhjkhjkhjkjhk</p>
</div>
</div>
<div id="footer">
<div align="center">
<p class="copyright" style="WIDTH: 0px; HEIGHT: 26px">
<div align="center">Copyright © 2011 Heritage
Stud.</div>
<p></p></div>
</div>
</div>
</body>
</html>
Thanks Mark.
P.S Im a breeder of Rabbits, Rats and Mice =D
badboyxlr
21-03-2011, 04:56 PM
You can make a content updater in php and AJAX, its not all that hard.
HTML File:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Heritage Stud</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript" src="http://aidantaylor.net/javascript/jquery-1.5.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#update").html("Refresh");
$("#update").click(function(){
$("#updates").load('PHPfile.php');
});
});
</script>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="left">
<a id="update" href=" "></a>
<h2>Recent Updates</h2>
<div id="updates">
<p>Updates to go here =D<br /></p>
</div>
</div>
</body>
</html>
The php file will depend on what the update div is reading, if it is an xml file, then get the date of the latest post, and do the date() function to format it, and mach it, if it dosent match to the latest inside the update xml file, then the ajax will replace the content thats inside the #updates div.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.