Search found 140 matches

by johnperkins21
Sun Mar 20, 2005 12:13 pm
Forum: Javascript
Topic: ESPN style news ticker
Replies: 3
Views: 1119

Yes, a very basic scroller can be done in Javascript, but I have the following that I want to show: Table 1 Info 1 Info 2 Info 3 Table 2 Info 4 Info 5 Info 6 Table 3 Info 7 Info 8 Info 9 So what I want is Table 1 heading to scroll up into frame, then Info 1, 2 & 3 to marquee across. When that's ...
by johnperkins21
Sun Mar 20, 2005 11:10 am
Forum: Javascript
Topic: ESPN style news ticker
Replies: 3
Views: 1119

ESPN style news ticker

I am trying to implement an ESPN style news ticker on my website. Basically what I have is a bunch of stats that I would like to show that come up similar to the way they do on like SportsCenter and stuff. Here is an example: http://picturethisproductions.com/twelvetone/ I don't know if this is even...
by johnperkins21
Mon Jul 26, 2004 3:45 pm
Forum: Javascript
Topic: CSS noob questions
Replies: 7
Views: 739

by johnperkins21
Fri Jul 16, 2004 6:05 pm
Forum: PHP - Code
Topic: I need help with making a browse games page
Replies: 11
Views: 1263

Untested, but that should be the easiest way. I'm sure you could do it all in one query, but I don't know that much about doing querys to help you. <?php $query1 = mysql_query("SELECT game_id FROM Genres WHERE genre_id = '$genre'"); while ($result1 = mysql_fetch_row($query1)) { $query2 = m...
by johnperkins21
Thu Jul 15, 2004 1:39 pm
Forum: PHP - Code
Topic: Is there a better variable that I can use?
Replies: 13
Views: 2012

Wow, this is a big string, but shouldn't this: <?php $myvar='<td bordercolor=#999999 bgcolor=#F1F1F1><font size=2><b>Client ID#:</b></font>{$client_id}</td> <td> </td> <td> </td> </tr> <tr bordercolor=#666666> <td width=203 bgcolor=#F1F1F1><font size=2><b>Display:</b></font></td> <td width=203 bgcol...
by johnperkins21
Wed Jul 14, 2004 6:46 pm
Forum: PHP - Code
Topic: checking row value and if certain value update a diff row
Replies: 11
Views: 1292

It looks like you can possibly do an elseif as well.

http://dev.mysql.com/doc/mysql/en/IF_Statement.html
by johnperkins21
Wed Jul 14, 2004 4:34 pm
Forum: PHP - Code
Topic: MouseOver with loop?
Replies: 6
Views: 676

I normally just use relational links like "image/home_o1.gif" simply because you can transfer code easier. Someone with more experience than I might have a better reason, but I think relational is the way to go. And if you're storing it in a database, why not just the image name? If you ch...
by johnperkins21
Wed Jul 14, 2004 4:31 pm
Forum: PHP - Code
Topic: Displying Data
Replies: 8
Views: 822

Someone might disagree with me on this, but I usually do something like this to make it easier on myself: <?php while ($row = mysql_fetch_assoc($result)){ ?> <input type="text" name="whatevername" size="30" value="<? echo $row['Id'] ?>"> <? ?>
by johnperkins21
Wed Jul 14, 2004 4:27 pm
Forum: PHP - Code
Topic: Displying Data
Replies: 8
Views: 822

ok im trying to use this to display my results ina textb box what is wrong with this error <?php while ($row = mysql_fetch_assoc($result)){ print " <input type="text" name="whatevername" size="30" value=".$row['Id']">"; ?> This isnt working You're m...
by johnperkins21
Wed Jul 14, 2004 4:19 pm
Forum: PHP - Code
Topic: MouseOver with loop?
Replies: 6
Views: 676

Yes, basically $images[$x] is your main image like image.gif, and then you would create image2.gif as your rollover image. You could change it to _rollover or whatever you want, but it would be the same image name with '2' or 'b' or '_rollover' or whatever. You might have to work with it to get it w...
by johnperkins21
Wed Jul 14, 2004 3:51 pm
Forum: PHP - Code
Topic: PHP POST via HTML SUBMIT - unique value pass
Replies: 2
Views: 286

Could you create a javascript function that changes the value of a hidden field on certain button clicks, and then submits the form?
by johnperkins21
Wed Jul 14, 2004 3:46 pm
Forum: PHP - Code
Topic: MouseOver with loop?
Replies: 6
Views: 676

If I'm reading this right, you're looking for a rollover effect to change the image? I wrote a quick little rollover function that accepts the variables of the replacement image, and the image name, like so: function menuhover(url,name) &#123; if (document.images) &#123; // only if the brows...
by johnperkins21
Tue Jul 13, 2004 12:56 pm
Forum: Javascript
Topic: TD WIDTH
Replies: 8
Views: 1051

Ok, I just tested that whole style="word-wrap: break-word;" nonsense. It works in IE 6, but not in Firefox. Your next option is to use PHP, unless someone else knows of anything.

Try here: http://us4.php.net/wordwrap
by johnperkins21
Tue Jul 13, 2004 10:34 am
Forum: Javascript
Topic: TD WIDTH
Replies: 8
Views: 1051

Do you have an example of code that isn't working? This should work: <table width="200"> <tr> <td width="100">A whole buttload of text... blah, blah</td> <td width="100">A whole buttload more text... blah, blah</td> </tr> </table> If you have one really really long stri...
by johnperkins21
Mon Jul 12, 2004 12:45 pm
Forum: Javascript
Topic: form.submit on Netscape doesn't works
Replies: 18
Views: 2038

Have you tried: this.document.frm_order.submit(); Give that one a shot. Works for me in Firefox and IE. Here's an example for ya on how I got it working for me: <SCRIPT LANGUAGE="JAVASCRIPT"> function validatepass() &#123; var pass = prompt('Enter Password'); if (pass == 'pass') &...