Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Rotating Images in a Table Row


Rotating Images in a Table Row

Reply
  #1 (permalink)  
Old 07-08-05, 10:23 AM
Roses6088 Roses6088 is offline
New Member
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rotating Images in a Table Row

Hi all,

I don't know much about HTML, but I'll give it a shot. I am programming a survey for a client in which I need 6 images to be displayed horizontally in a table row randomized. The problem I am having is that I can put the images in a table row only they appear vertically. Any help? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-08-05, 12:14 PM
koncept
Guest
 
Posts: n/a
there was a css setting that could be used to rotate text. i do not know if it will work on an image. why not just rotate them before uploading them?

they will rotate text in any element when applied using css
writing-mode: tb-lr;
filter: flipv fliph;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-20-05, 03:57 PM
nothingofvalue nothingofvalue is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
If I am understanding correctly, you simply want a horizontal table that loads random images into each of six table cells when the page loads?

This should do it but you would need further coding to eliminate duplicate images appearing in the table if you wish:

<?php
//Display a random picture, pictures are named (1.jpg) (2.jpg) etc.
$pic = rand (1,6);
?>
<table width="800">
<tr>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col">&nbsp;<?php echo "<img src= $pic.jpg>" ?></th>
</tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating Text Links & Images daily... J-Deak Script Requests 5 02-13-05 06:06 PM
I want to make table row flahses GS300 JavaScript 3 02-04-05 05:53 AM
display images in a datagrid or table from mysql database. bin ASP 1 01-03-05 07:34 PM
Problem with a sort table js function tdubyou JavaScript 0 05-03-04 10:19 AM
auto table resize derick_2k JavaScript 4 04-26-04 03:32 PM


All times are GMT -5. The time now is 09:04 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.