Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. Yes I have.I find there is much less HTML code which allows for better readability and looks cleaner.Look at http://www.spatterdesign.ca/sites/92js. This is done with no tables, please don't mind the large white void in the center of the page...this is a work in progress...actually I am waiting for hte client to decide on a picture.HTML code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html><head> <title>Spatter Design - It's just easier</title> <link rel="stylesheet" href="css/92js.css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body> <div class="Wrapper"> <div class="BandBio">The music of U2 has always been about heart and mind, body and soul. Down the years the band have succesfully thrown a spotlight on the work of key campaigning groups who are trying to make the world a better place.<br /><br />From Amnesty International and Greenpeace through to DATA and the Chernobyl Childrens Project, U2 have used benefit concerts, songwriting, public campaigning, special visits and fund-raising projects to promote a range of charities and activist communities worldwide.<br /><br />In our news column on the left, you'll be kept up to date with stories that reflect the band's involvement in some of these areas. </div> <div class="TunesBox"> <a href="#" onclick="window.open(this.href);return false;"> Click here to listen to songs from the 92J's. </a> </div> <div class="CdLink"> <a href=""> </a> </div> <div class="ContactInfo"> <img src="images/Contact.gif" alt="" /> <br /> <a href="mailto:band@92js.com">band@92js.com</a> 902.555.0000 </div> </div> <div class="Copyright"> © 2005 92J's. All rights reserved.<br /> Design by Spatter Design. </div></body></html> CSS file html, body { margin: 0px; background-image: url(../images/92js_BodyBg.jpg); font-family: Verdana, sans-serif; font-size: 8pt; } a { color: #0000ff; } .BandBio { float: left; position: relative; top: 240px; left: 40px; overflow: auto; border: 0px solid white; width: 200px; height: 240px; padding: 5px; } .CdLink a { display:block; width: 230px; height: 100px; border: 0px solid black; position: relative; top: 390px; left: -45px; text-decoration: none; } .CdLink a:hover { border: 0px solid black; background-color: #ffffff; filter:alpha(Opacity=20); } .ContactInfo { width: 150px; height: 100px; border: 0px solid #000000; position: relative; top: 340px; left: 200px; text-align: center; } .ContactInfo a { text-decoration: none; color: #747474; } .ContactInfo a:hover { text-decoration: line-through; } .Copyright { width: 100%; text-align: center; color: #747474; padding: 5px; } .TunesBox { float: left; position: relative; top: 50px; left: 330px; overflow: auto; border: 0px solid white; width: 115px; height: 110px; padding: 5px; font-size: 7pt; } .TunesBox a { color: #ffffff; } .TunesBox a:hover { color: #000000; } .Wrapper { width: 698px; height: 543px; margin: auto; background-image: url(../images/92js_MainBg.jpg); } I find the easiest way to acheive tableless layouts is to put the layout into a background image, wrap everything in a mother <div> and then use relative positioning for everything else.(changed display to code box to save room - skemcin)
  2. ok i looked at your middle div (id=middle)..You set the width for it in your CSS (#middle) to 46% (width:46%) but then insert inline CSS to set the width to 555px.Why????Anyways the scrolling part is easy, you have defined the dimensions of the div in your inline CSS (width and height).you can add to the inline or your css file, it doesn't matter, the followingoverflow:autoThat's it. It should scroll when the content is too big for your middle div.As far as loading a page in the middle div you will either have to make many pages the same but with having different middle divs or use an iframe in the middle div.cheers
  3. a noobie at HTML or the internet????Did you mean you can't find any flags or you don;t know how to put them on your page???Go to www.google.comclick on the 'IMAGES' linktype in the country you want the flag for and I am sure you will find many flags.As far as inserting them into the page look at www.w3schools.com for html tutorials.
  4. Dan, What he is saying, I think, is that if he leaves the action attribute empty the form submits tot he page it is on.So if you are on index.php and you submit the form with action="" it is the same as action="index.php"It works fine but just isn't valid XHTML 1.1.OZZIE, who are you talking to/about???? w3schools??? They do not set web standards. This is a tutorial site. the W3C (w3c.org) sets web standards not w3schools.Like Dan said, maybe you will have to downgrade to 1.0 transitional for this page or set a session variable on page load that contains the current url and then insert that into the action.
  5. aspnetguy

    sniffer

    I believe that if they do not have it wondows propmts them anyways, it did for me anyways. also if they don't have it applets show a download plugin link anyways.I don't think you can access a persons filesystem unless javascript has permissions outside the browser, which it does not by default. I would never give javascript permissions to my harddrive anyways, that leaves you wide open for an attack!I think you are out of luck on this unless someone else knows of a way.
  6. Would it be possible to make a section on these forums for JSP/Java? Even though there are no tutorials it would still be helpful if people could ask questions about it.Java Server Pages seems to be the only rival to the .Net technology (for compiled code, I know PHP is still big).
  7. It appears that with the extensive absolute positioning you have used that it would be a lot of work to get it to center.For this reason I try and a void absolute positioning when ever posible.I always make a <div></div> and place everything inside it and then use relative positioning to the parent div. that way no matter where i move the div everything inside stays lined up properly.sorry I couldnt be much help.
  8. <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=13> <IMG SRC="images/rsa_01.gif" WIDTH=800 HEIGHT=108 ALT=""></TD> <TD> <IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=108 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 ROWSPAN=5> <IMG SRC="images/rsa_02.gif" WIDTH=59 HEIGHT=447 ALT=""></TD> <TD ROWSPAN=2> <a href="index.html"><IMG SRC="images/rsa_03.gif" ALT="" WIDTH=302 HEIGHT=58 border="0"></a></TD> <TD COLSPAN=10>...... You do have tables in your code
  9. I have never tried that...infact had never thought of it, but I don't think that will work. There is no src attribute. How would you link the external page to the <object>???The javascript might work but you would have to open the external page and read the content with javascript then dump it int the object.Sounds like a lot of work and processing to avoid an iframe. You can hide the borders of the iframe so it ins't noticable until it overflows the set area.I do this sometimes on purpose <div style="width:300px;height:300px;overflow:auto">...Loads of text...</div>If you hate iframes that much you could just use ASP or PHP and then use SSI. This provides complete seamless entry of external pages that take the space they need, no scroll bars or borders.
  10. Ok set all your positioning to relative (position:relative)then do this...<div style="width:[widthofyourpage]px;margin:auto">...your existing code....</div>This should center everything.
  11. Where is the free hosting you talk about, I went there and the packages are 4.95/mth and up
  12. aspnetguy

    Condtional Images

    use a data reader.sorry this is in C# thats what I know. And for a SQL Server databaseyou need to use the System.Data.SqlClient and System.Collections namespaces for this example. SqlConnection cnt = new SqlConnection("ConnectionString");SqlCommand cmd = new SqlComamnd("sql statement", cnt);SqlDataReader data = null;ArrayList ImgPath = new ArrayList();cnt.Open();data = cmd.ExecuteReader();while(data.Read()){ ImgPath.Add(data["DatabaseField"].ToString());}data.Close();cnt.Close(); You now have an array of all your img paths, you can add extra ArrayLists based on what data you need.Setup a string and build your images. string Html = "";for(int i=0;i<ImgPath.Count;i++){ Html += "<img src=\"" + ImgPath[i].ToString() + "\" alt=\"\" />";} Now you just output the Html string to the screen however you want.
  13. that is still only using one form per page and the same results can be acheived in 1 form and on only 1 page, that is why there are different event handlers.What is the specific reason you think you need to use 2 forms????Please post your needs and I can explain how to get it done.
  14. Or you could use a table, I know Jonas that that is not the direction that standards are going (only use tables for tabular data) but in some situations it is easier to setup the page with a table, especially if a person is not familiar with CSS. <table width="100%"> <tr> <td style="background-color: #000000;width:250px"></td> <td style="background-color:#[pink hex color]"></td> </tr></table> And in reference to the comment about making 1024x768 images and just cutting them up, remeber there are plenty of people out there using resolutions greater than 1024x768.if your background image is only 1024x768 you need to plan for an 'overflow' background even if it is just a solid color.
  15. Get Visual Web Develper @005 Express. It is free. Just search microsoft.com for it. You can get a free Express Edition of SQL Server 2005 too.VWD Express is a very light weight Visual Studio.Net 2005. It can only handle Web Projects. If you want to do desktop work you can download C# Express or VB.Net Express. Again they are free too.To save yourself someheadaches, before you try and install any of the products I mentioned make sure you have at least Windows XP SP2 (not sure if it can be installed on anything older than this Windows 2000 for example. I know it will not install on XP without SP2), Windows installer 3.1, .Net Framework 2.0.That should do just about anything you want.
  16. Looks good...some msall nitpicky things that aren't quite consistent between IE and FF.The titles News and Quick Links have different top padding in different browsers.If you need help making htem the same in both IE and FF I can show you how.Good job though, here's to web standards! I wish more people would use them and pressure IE to be more compliant and then we wouldn't have these issues.Cheers
  17. in your original post you did not have the MAX(). I think that is why the results weren't what he wanted.
  18. SELECT distinct computerName, MAX(logonTime)FROM tablenameORDER BY logonTime DESCdoes this work?If not, I'll setup some test data and give it a proper try.
  19. actually <b> and <i> were replaced in XHTML 1.0 (if you use Strict not Transitional)Transitional is not true XHTML, it just lets you use the XHTML doctype and continue as you did in HTML 4.Use XHTML 1.1 there are no Transitional/strcit/etc. It is just XHTML 1.1, period.And yes that is the reason for some duplicate tags, some may appear the same but do have slit diiferences, many of which are acheived with CSS so many tags are now obselete.
  20. The whole 'VISUAL' part of development was created so the deveoper doesn't waste hours designin ght eofrm when you can just drag and drop.It refers to the point, 'don't re invent the wheel every program you write'.The whole focus of Visual and Object Oriented programming is to write code in a way that much of it can be reused over again in other programs.VISUAL Basic is not good for game programming (by games I mean 3D games, like Call of Duty or something, not simple matching games.)Infact C++ remains the best and most efficient for complex games, although much more complex than visual basic and harder to understand.Also don't waste your time learning VB6 now, there are 2 newer releases since then anyways.Look into VB.Net (1.0, 1.1, and 2.0).
  21. hey try thishttp://www.faqts.com/knowledge_base/view.p...d/18026/fid/426or if you don't need to do any processing befor ethe javascript is run then just include this in hte <head> of your page.<script language="VBScript" src="catinahat.vbs"></script><script>onload=function InitPage(){ call first function from .vbs}</script>Substitue the VBScript equivalent for the javascript provided. Sorry I haven't touched VBScript in a long time and am very rusty.
  22. I don't know JSP but in ASP.Net in the Page_Load() function you can usethis.RegisterStartupScript(scriptKey, ScriptCode);I am sure there is something similar in JSP.
  23. you need a server side language to intereact with the database.LayersServer Side Language(ASP.Net) ==> SQL Statement ==> Database (Access)Yes ASP uses VBScript but it is in the Server side tags <% %> not in the <script></script> tags.
  24. Where is the zipped file? on the server? If it is on the server you cannot touch it with VBScript (this is client side only).You should look into a server side language, this is easy to do with ASP.Net or PHP.
×
×
  • Create New...