473,385 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to allign links,videos,photos properly.plz check out below code ..

HI Everyone..

I am not able to align links,videos,photos etc in right way.Foe example i have aligned sign out on right side page but when i click on any area which falls in the row area(in which sign out is placed),i got sign out but i want when i click only on link i get sign out.I have used photos in my pages and videos.I have placed photos in a table in less than half of page width .I want that in remaining half area videos player appreas..But i am not able to do this..I am sending u my files plz check and tell me correct method to align these things i think Div will be used but i dont know its prooper use.Plz suggesr me what should i do.

Home_page.php

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3.     <title>Home Page</title>
  4. </head>
  5.  
  6.  
  7. <body background="bg.JPG">
  8.  
  9. <table>
  10. <tr><td><?php include('search_file.php'); ?></td>
  11. <td><?php include('google.php'); ?></td>
  12. </table>
  13.  
  14. <font color="red"><b><h2 align="center">Deepak Narwal Welcomes You</h2></b></font>
  15. <hr size="2" width="50%">
  16.  
  17. <a  href="logout_file.php"><h3 align="right">Sign Out</h3></a>
  18. <?php include("photo_upload.php"); ?>
  19. <br /><br /><br /><br />
  20.  
  21. <?php include("video_upload.php"); ?>
  22.  
  23. <br /><a href="upload_file.php"><h4>Up-Load Files</h4></a>
  24. <br /><br />
  25.  
  26. <a href="list_files.php"><h4>List All Up-Loaded Files</h4></a>
  27.  
  28.  
  29.  
  30. </body>
  31. </html>
  32.  
  33.  


Next file in which i have used photos are

photo_upload.php

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function changeimage(n)
  5.   {
  6.     var img=document.getElementById("sample");
  7. if(n==1) 
  8.  {
  9.    img.src="16.jpg";
  10.  }
  11.  else
  12.  {
  13.   img.src="5.jpg";
  14.  }
  15. }
  16. </script>
  17. </head> 
  18.  
  19.  
  20.  
  21.  
  22. <body>
  23. <table cellpadding=10 cellspacing=6 align=left border=1>
  24.  
  25. <tr>
  26. <td><a href="kat.JPG"><img src="kat.JPG" width="200" height="150" border="0" alt="katrina"></a></td>
  27. <td><a href="kat2.JPG" ><img src="5.jpg"  border="0" width="200" height="150" id ="sample" alt="sample" onmouseover="changeimage(1)" onmouseout="changeimage(2)"></a></td> 
  28. </tr>
  29.  
  30. <tr>
  31. <td><a href="kat3.JPG"><img src="kat3.JPG" width="200" height="150" border="0"></a></td>
  32. <td><a href="kat4.JPG"><img src="kat4.JPG" width="200" height="150" border="0"></a></td>
  33. </tr>
  34. </table>
  35. </body>
  36. </html>
  37.  
  38.  

For videos my file is


Expand|Select|Wrap|Line Numbers
  1. video_upload.php
  2. <html>
  3. <head>
  4.     <script src="flowplayer-3.1.4.min.js"></script>
  5. </head>
  6.  
  7.  
  8. <body>
  9.  
  10. <a 
  11.     style="display:block;width:300px;height:250px;position:relative;left:1054;"  
  12.     id="player">
  13. </a>
  14.  
  15. <script language="JavaScript">
  16.     flowplayer("player", "flowplayer-3.1.5.swf" , { clip: { autoPlay : false, autoBuffering: true},   playlist: [ 'video.flv', 'flowplayer.flv'] });  //create a object of clip name
  17. </script>
  18. <br /><br /><br /><br /><br /><br />
  19. <br /><br /><br /><br /><br /><br /><br /><br /><br />
  20. <br /><br /><br />
  21.  
  22.  
  23.  
  24. <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" align="right" width="320" height="260" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
  25. <param name="custommode" value="none" />
  26.     <param name="loop" value="true" />
  27.     <param name="autoPlay" value="false" />
  28.     <param name="autoBuffering" value="true" />
  29.     <param name="src" value="http://localhost/idiot.mkv" />
  30. <embed type="video/divx" src="http://localhost/idiot.mkv" custommode="none" width="300" height="250" previewImage="deepak.JPG" loop="true"  autoPlay="false"  pluginspage="http://go.divx.com/plugin/download/">
  31. </embed>
  32. </object>
  33.  
  34. </body>
  35. </html>
  36.  
  37.  
Tell me how i can allign pics in half width area and videos in next half width area in same rows...
Feb 2 '10 #1
0 1764

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
0
by: Ioannis Vranos | last post by:
I just posted the following links in another Usenet newsgroup, and thought, why not, post them here too. I think they provide a wealth of information: http://msdn.microsoft.com/chats ...
2
by: Ross | last post by:
Hi I have an application using asp.net that I am running on my PC. The web form has a text box where you can enter a name for a new Photo category then click on the button. The code is...
3
by: Yannick Benoit | last post by:
anyone knows any other ways that ffmpeg to take screenshots from videos ?
2
by: Cameron Laird | last post by:
QOTW: "Making a user class work anywhere you can put a mapping in Perl is deep magic, but easy in Python. Creating types that act like files and can be used wherever a file is used is SOP in...
4
by: justabeginner | last post by:
First of all, let me say I've had very little training in html and probably know just enough to be dangerous. I designed a website for my alumni association last summer using XHTML Transitional and...
3
by: msg2ajay | last post by:
hi, I am not able to align the textfield to the top of the frame one bye one. The problem is it is showing where it is hiding..... so is it possible to allign the text field to the top of...
7
by: robin1983 | last post by:
Hi, good morning everyone, i have a file called attendence.php The problem is that some part of code is executing properly and half of the code is not and i dont get any warning or error message. For...
1
by: adam.waterfield | last post by:
I have a bit of a strange issue with a CSS styled unordered list (contained within a <div>). The layer is acting as a drop down when triggered by a JS onmouse event of a link - this works fine....
5
by: scan87 | last post by:
Hello everyone I am creating a project which will upload videos and play them. When a user uploads a video it will be convereted into .flv format. But the problem I have not been able to successfully...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.