I need a table script for a website
#1
Posted 12 July 2009 - 11:13 AM
i have 3 questions
1. i was just looking at tothegame.com and find their table like showing all the games , genres releas dates, and other things
well my question now is how can i make script like that or where can i get one for a website that i am working on
take a look at this picture its like that or go to the website then you know what i mean
http://img199.imageshack.us/img199/820/tabletqp.jpg
2. and i want like some vote or rate systeem on my website does anyone know where i can get it
like this 5 star vote or 10 star it doesnt matter but the 5 star vote is i think better for my website
http://img21.imageshack.us/img21/2720/votes.jpg
3. and the last question is i have a a script that i use for ads its like when you scroll down the page down the ad is scrolling also down with the page
but my problem is now everytime i use the script with the ad and placed on my website all the text that is showing on the site is moved all the to the right side of the page
the script
<style>
#kayan_reklam {
position : ;
position : fixed;
right : 244;
top : 0px;
}
</style>
<div id="kayan_reklam">
<script type="text/javascript"><!--
you have to put the google script here
</script>
i hope you can help me out
thanks
#2
Posted 12 July 2009 - 01:10 PM
http://www.downloadjavascripts.com/Vote.aspx
Both search engines are exceedingly good at parsing questions, so if you typed in "How do I create a table using javascript", I got this:
http://www.webcredible.co.uk/user-friendly...ed-tables.shtml
I can absolutely promise that there is nothing that you are trying to do that hasn't already been done, and already has thousands of examples.
#3
Posted 12 July 2009 - 04:17 PM
thanks again for the help
the star vote rating systeem is usefull and is the right one but the table isnt the right one if youtake alook at the picture that i have posted its another kind of table
go to
tothegame.com
and see it for yourself i want something like that one like you can use the functions of the abcdef and the search function and to sort at a date or name
just teke a look and you know what i mean
i hope its not to difficult to make such a thing
thanks
This post has been edited by pcmonsters: 12 July 2009 - 04:27 PM
#4
Posted 12 July 2009 - 04:46 PM
#5
Posted 12 July 2009 - 05:06 PM
and yes i have looked at the source of script and its hard to find the pieces that you want and i dont know if that gonna work
so if you can help me making a table like that than you solved my problem and sure a lot of time
and thats why i am here on this forum to get help i know i can go and search on google but if you dont understand the scripting and coding than thats a little bit hard
#6
Posted 12 July 2009 - 05:07 PM
This post has been edited by pcmonsters: 12 July 2009 - 05:09 PM
#7
Posted 12 July 2009 - 05:40 PM
<tr onMouseover="this.style.backgroundColor='#4d4d4d';" onMouseout="this.style.backgroundColor='';">
<td width="372"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <a href="http://www.tothegame.com/ps2-2176-hack-infection-for-sony-playstation-2.html"><font color="E64922">.hack infection <font color=D7D7D7>(PS2)</font></font></a></font></td>
<td width="138"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif">RPG </font></td>
<td width="126"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif">
11-Feb-2003
</font></td>
<td width="77"><font color="D7D7D7" size="1" face="Verdana, Arial, Helvetica, sans-serif">Released</font></td>
<td width="23"><div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">
<a href="member_mylist_add.asp?gameid=2176" target="_blank" onClick="fmPopUp('member_mylist_add.asp?gameid=2176',310,180,'no','no','no');return false;"><img src="gfx/releaselist/mylist.gif" width="17" height="12" border="0" alt="Track this Game"></a>
</font></div>
</td>
</tr>That exact code is displayed over and over again, the only difference being that the name of the game is changed, and the id changes. That's it. So here is what I would do. Cut and paste part of that code into a test project of your own and see what happens. We are perfectly willing to help you, but we do not write code for you. I get paid to write code, and have my own projects. However, if you put together some code, and it doesn't do what you expect, then show us what you have done, and we will help you fix it.
#8
Posted 12 July 2009 - 07:37 PM
and the second difficult thing is how do i ised on my website but till than i think i have to quit cause i am not a step closer to get this damn thing working for me and i have used your code also but that is still not the right one
i hope you can just teach me how to insert the code on my website step by step otherwise i dont know what to do next
i have found a table take a look but how do i get this code on my website
i have found this code on the website that you gaved me on your other post
http://www.downloadjavascripts.com/Tables.aspx and then choose the first table thats the one i want but how do i used
thanks
This post has been edited by pcmonsters: 12 July 2009 - 07:38 PM
#9
Posted 13 July 2009 - 07:33 AM
<input type="button" value="click me" onClick="alert('Someone clicked me)"/>Or it can go at the top of the HTML page, in between the <head></head> tags. Then the function can be called like this:
<head>
<script type="text/javascript">
function printMessage(){
alert("I've been clicked");
}
</script>
</head>
<body>
<input type="button" value="click me" onClick="printMessage"/>
</script>The final way is to use an external javascript file, and it is called like this:
<script type="text/javascript" src="some.js"> </script>
Using an external javscript file has several advantages, and is the preferred method. One, it separates functional code from the HTML. Second, the javascript can be used for multiple pages, instead of having to rewrite the same code over and over. Finally, if you need to change the javascript for some reason, you only need to change it in one place.
All of this can be found on the net. As I explained before, you won't understand just by looking at it. You actually need to type it out and get a feel for what you are doing. This page here has some nice and easy to follow tutorials. Try them out.
Quote
I copied that code directly from tothegame.com, so yes, it is the right code. I am pretty sure that I know why it wouldn't work for you, but unless you show me your code, I can't say for sure.
Quote
Did you follow the instructions? Is there a specific place that confused you?
#10
Posted 13 July 2009 - 10:15 AM
i have been looking st the instructions of that table bbut i get stuck at the 5th and 6th step
there i am lost i have downloaded the scripts
and how do you add this to your site i am using Web Page Maker
i know thats not a good site builder but that kind of software i can afford to buy
-have a valid XHTML document,
-have a valid table* in this document
-download the following javascripts to a folder on your server: Event.js and SortedTable.js
-add a class="sorted" to the table
*include the javascripts in the html (<script type="text/javascript" src="Event.js"></script> and <script type="text/javascript" src="SortedTable.js"></script>)
*add the following code to the html <script type="text/javascript">onload = function() {var myTable = new SortedTable();}</script>
-if you're using XML Data Islands add class regroup (you should have class="sorted regroup")
This post has been edited by pcmonsters: 13 July 2009 - 10:19 AM
#11
Posted 13 July 2009 - 01:20 PM
<html>
<head>
<title></title>
<script type="text/javascript" src="Event.js"></script> and <script type="text/javascript" src="SortedTable.js"></script>
<script type="text/javascript">onload = function() {var myTable = new SortedTable();}</script>
<head>
<body>
<table class="sorted">
//table data goes here
</table>
</body>
</html>It is up to you to populate the table. You will need to study the documentation here. The source code of this page should tell you what you need.
The Javascript files that you download go in the same folder as your HTML.
#12
Posted 13 July 2009 - 02:30 PM
well thanks for all the help groovicus
but i am getting to realize that i have to go and study more of this css code an script
i am gonna quet with this table script and stuff i am gonna give up cause i am no step further than i was in the first place its not your fault but i cant get it so quickly understand this css
but any way i want to thank you for all the help and everything youve done thanks for that
i am gonna buy me some learning books about this css and scripts hope to understand this
thanks again for all the help
#13
Posted 13 July 2009 - 05:48 PM
Good luck.
#14
Posted 13 July 2009 - 06:19 PM
thanks groovicus i will do that
one more thing, i want to buy some books about html and css all that kind of stuff do you know some geat books that will teach you that in a fast and good way and where i can buy them
any way thanks again
This post has been edited by pcmonsters: 13 July 2009 - 06:20 PM
#15
Posted 13 July 2009 - 06:52 PM

Help


Back to top









