Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

I need a table script for a website


  • Please log in to reply
21 replies to this topic

#1 pcmonsters

pcmonsters

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 12 July 2009 - 11:13 AM

hi

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

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 12 July 2009 - 01:10 PM

Just a quick suggestion because I am in the middle of putting together a presentation, but have you just looked at the source code? That is usually the easiest way to figure out what others are doing. ANd if I may give one more suggestion on using search engines, if you use Bing or Google, all you need to do is type in something like "javascript vote or rate system". The 4th result returned this (which I think is exactly what you want):
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. :thumbsup:

#3 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 12 July 2009 - 04:17 PM

hi

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

Edited by pcmonsters, 12 July 2009 - 04:27 PM.


#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 12 July 2009 - 04:46 PM

That was one example of a table. As I said, there are thousands of ways to do tables, and an infinite number of ways to style them. I am trying to encourage you to look for yourself. I also said that if you want to know exactly how the table was done that you could look at the source code yourself. :thumbsup:

#5 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 12 July 2009 - 05:06 PM

well i was hoping to get some help from soemone around here or from you because i am not so good at that platform of scripts so it would be great if you could help me how to make some table like those in tothegame.com

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 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 12 July 2009 - 05:07 PM

e

Edited by pcmonsters, 12 July 2009 - 05:09 PM.


#7 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 12 July 2009 - 05:40 PM

The table is generated using .asp, and all it is is table elements over and over again.
				<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. :thumbsup:

#8 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 12 July 2009 - 07:37 PM

well i am still searching for a right table to use

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

Edited by pcmonsters, 12 July 2009 - 07:38 PM.


#9 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 13 July 2009 - 07:33 AM

Javascript can go in one of three places. It can be inline:
<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>
&lt;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:
&lt;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.

i have used your code also but that is still not the right one

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.

thats the one i want but how do i used

Did you follow the instructions? Is there a specific place that confused you?

#10 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 13 July 2009 - 10:15 AM

hi

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 (&lt;script type="text/javascript" src="Event.js"></script> and &lt;script type="text/javascript" src="SortedTable.js"></script>)
*add the following code to the html &lt;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")

Edited by pcmonsters, 13 July 2009 - 10:19 AM.


#11 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 13 July 2009 - 01:20 PM

It is telling you to include the two javascript sheets, so your html would look like this:
<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 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 13 July 2009 - 02:30 PM

hi


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 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 13 July 2009 - 05:48 PM

I would suggest that you start with basic HTML first. You don't need anything other than Wordpad to get started; just type in the examples that you find. Most people can get a basic grasp of HTML in a couple of weeks. Once you have a grasp on that, then move on to CSS. After a few weeks, you should have a decent handle on that. Then think about Javascript.

Good luck. :thumbsup:

#14 pcmonsters

pcmonsters
  • Topic Starter

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:36 AM

Posted 13 July 2009 - 06:19 PM

hi


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 :thumbsup:

Edited by pcmonsters, 13 July 2009 - 06:20 PM.


#15 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:36 AM

Posted 13 July 2009 - 06:52 PM

I would say save your money. Everything that you need is available on the Internet. Eventually you might want to get a CSS reference book, but not until you actually start learning CSS. There are tons of examples on the Internet for CSS also though.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users