- Joined
- Mar 23, 2011
- Messages
- 14
- Reaction score
- 2
this is truley amazing, keep up the good work
Can't I ask?maplefreak code it your self
on the other hand i just finished coding the psd
The most annoying question you will hear today: U GONNA RELEASE IT? IF SO, WHEN?and Why are you wondering this? LOL How far others have gone is of their own business, not yours, theirs. Answering your question, I've just finished making the CSS file, and index page, doing JQuery + JS next.
Look at mertjuh comment, it says "hot..", it have no reason why it's hot. Same kind of comment, just, oppose taste. He doesn't like it, not everyone will like it... you have to deal with that. It's not a flame, it's just his opinion.
Sorry Error 404, did my feedback make you angry? So, your design is so beautiful.................
You see, people like you push developers away. I've also said no flame. If you are saying its ugly, then there must be a reason. I also want to see you, design something. And by the way, I feel sorry for you, that you couldn't afford to pay for your "tonynguyenpro.com" domain. Bye now (;
I'm kinda curious how'ya did those plus/minus bars in CSS.![]()
var current;
var delay = 20;
var padding = 6;
var prefix = 't-';
var button_prefix = 'b-';
var step = 5;
var working = false;
var status = new Array();
var heights = new Array();
function $(element) {
return document.getElementById(element);
}
function start_small(id) {
current = $(prefix + id);
if (typeof heights[id] == 'undefined') {
status[id] = false;
heights[id] = current.offsetHeight - padding;
}
current.style.display = 'none';
$(button_prefix + id).innerHTML = '+';
}
function setup() {
start_small(3);
}
function toggle(id) {
if (!working) {
current = $(prefix + id);
working = !working;
if (typeof heights[id] == 'undefined') {
status[id] = true;
heights[id] = current.offsetHeight - padding;
}
status[id] = !status[id];
if (!status[id]) {
setTimeout('animate_collapse(' + heights[id] + ');', delay);
$(button_prefix + id).innerHTML = '+';
}
else {
setTimeout('animate_expand(0, ' + heights[id] + ');', delay);
$(button_prefix + id).innerHTML = '-';
}
}
}
function animate_collapse(height) {
if (height >= step) {
current.style.height = (height - step) + 'px';
setTimeout('animate_collapse("' + (height - step) + '");', delay);
}
else {
current.style.display = "none";
working = false;
}
}
function animate_expand(height, max) {
current.style.display = 'block';
if ((height + step) <= max) {
current.style.height = (height + step) + 'px';
setTimeout('animate_expand(' + (height + step) + ', ' + max + ');', delay);
}
else {
current.style.height = max + 'px';
working = false;
}
}
<html>
<head>
<link
type="text/css"
rel="stylesheet"
href="main.css"
/>
<script
language="javascript"
type="text/javascript"
src="animate.js"
></script>
</head>
<body onLoad="setup();">
<div class="toggle_wrapper">
<table class="head" cellspacing="0" cellpadding="0">
<tr>
<td>
News
</td>
<td id="b-1" class="toggle_button" onClick="toggle(1);">
-
</td>
</tr>
</table>
<div class="content" id="t-1">
<div>
content
<br />
content
</div>
</div>
</div>
<br />
<div class="toggle_wrapper">
<table class="head" cellspacing="0" cellpadding="0">
<tr>
<td>
News
</td>
<td id="b-2" class="toggle_button" onClick="toggle(2);">
-
</td>
</tr>
</table>
<div class="content" id="t-2">
<div>
content
<br />
content
<br />
content
</div>
</div>
</div>
<br />
<div class="toggle_wrapper">
<table class="head" cellspacing="0" cellpadding="0">
<tr>
<td>
News
</td>
<td id="b-3" class="toggle_button" onClick="toggle(3);">
+
</td>
</tr>
</table>
<div class="content" id="t-3">
<div>
hidden content already
</div>
</div>
</div>
</body>
</html>
div.toggle_wrapper {
border-color: #000000;
border-style: solid;
border-width: 1px;
font-family: trebuchet ms;
font-size: 12px;
width: 200px;
}
div.toggle_wrapper table.head {
background-color: #EEEEEE;
font-size: 12px;
width: 100%;
}
div.toggle_wrapper table.head td {
padding: 3px;
}
div.toggle_wrapper table.head td.toggle_button {
background-color: #CCCCCC;
cursor: pointer;
text-align: center;
width: 20px;
}
div.toggle_wrapper div.content {
background-color: #AABBCC;
overflow: hidden;
padding: 3px;
}
If anyone else doesn't like to use jQuery I made a little script to possibly help people code this release. Not as smooth as that jQuery Accordion but its ok...
PHP:var current; var delay = 20; var padding = 6; var prefix = 't-'; var button_prefix = 'b-'; var step = 5; var working = false; var status = new Array(); var heights = new Array(); function $(element) { return document.getElementById(element); } function start_small(id) { current = $(prefix + id); if (typeof heights[id] == 'undefined') { status[id] = false; heights[id] = current.offsetHeight - padding; } current.style.display = 'none'; $(button_prefix + id).innerHTML = '+'; } function setup() { start_small(3); } function toggle(id) { if (!working) { current = $(prefix + id); working = !working; if (typeof heights[id] == 'undefined') { status[id] = true; heights[id] = current.offsetHeight - padding; } status[id] = !status[id]; if (!status[id]) { setTimeout('animate_collapse(' + heights[id] + ');', delay); $(button_prefix + id).innerHTML = '+'; } else { setTimeout('animate_expand(0, ' + heights[id] + ');', delay); $(button_prefix + id).innerHTML = '-'; } } } function animate_collapse(height) { if (height >= step) { current.style.height = (height - step) + 'px'; setTimeout('animate_collapse("' + (height - step) + '");', delay); } else { current.style.display = "none"; working = false; } } function animate_expand(height, max) { current.style.display = 'block'; if ((height + step) <= max) { current.style.height = (height + step) + 'px'; setTimeout('animate_expand(' + (height + step) + ', ' + max + ');', delay); } else { current.style.height = max + 'px'; working = false; } }PHP:<html> <head> <link type="text/css" rel="stylesheet" href="main.css" /> <script language="javascript" type="text/javascript" src="animate.js" ></script> </head> <body onLoad="setup();"> <div class="toggle_wrapper"> <table class="head" cellspacing="0" cellpadding="0"> <tr> <td> News </td> <td id="b-1" class="toggle_button" onClick="toggle(1);"> - </td> </tr> </table> <div class="content" id="t-1"> <div> content <br /> content </div> </div> </div> <br /> <div class="toggle_wrapper"> <table class="head" cellspacing="0" cellpadding="0"> <tr> <td> News </td> <td id="b-2" class="toggle_button" onClick="toggle(2);"> - </td> </tr> </table> <div class="content" id="t-2"> <div> content <br /> content <br /> content </div> </div> </div> <br /> <div class="toggle_wrapper"> <table class="head" cellspacing="0" cellpadding="0"> <tr> <td> News </td> <td id="b-3" class="toggle_button" onClick="toggle(3);"> + </td> </tr> </table> <div class="content" id="t-3"> <div> hidden content already </div> </div> </div> </body> </html>PHP:div.toggle_wrapper { border-color: #000000; border-style: solid; border-width: 1px; font-family: trebuchet ms; font-size: 12px; width: 200px; } div.toggle_wrapper table.head { background-color: #EEEEEE; font-size: 12px; width: 100%; } div.toggle_wrapper table.head td { padding: 3px; } div.toggle_wrapper table.head td.toggle_button { background-color: #CCCCCC; cursor: pointer; text-align: center; width: 20px; } div.toggle_wrapper div.content { background-color: #AABBCC; overflow: hidden; padding: 3px; }
That domain has expried 3 month ago. Now i'm usingTo view the content, you need to sign in or register
Seriously? ._.To view the content, you need to sign in or register
awwI suck at CMS coding :O
Can anyone code this for me? Thanks![]()
Got money? LOL. No one is going to do it for free.
Got money? LOL. No one is going to do it for free.