HTML - Displaying Mixed Content-type
Hi,
I am writing a Perl function that needs to be able to display some simple text and two png images. I would like to be able to display them all in a row so that the text fields are in the left "column", the png's are in the middle and right "columns" and, finally, there is an input field next to the rightmost png. I've Googled everything I could think of and nothing seems to do the trick. In particular the png images need to be displayed using the HTML equivalent of the following Perl code: Code: print "Content-type: image/png\n\n"; print $wordPNG; and I haven't been able to figure out how to get more than one of these statements into the html. In a pinch I would be happy to display the three groups vertically as long as I can get an input field next to the last png. Any advice is appreciated. Regards. Similar TutorialsHi, I am presenting in my page some images that are favicon from different urls. Some of the sites return text/html as the content type of their favicon. firefox knows how to handle wrong content type and shows the image properly while IE shows the well known X. for example: <img src="http://www.readwriteweb.com/favicon.ico"> anyone knows how to force IE to treat it like an image? I was wondering if there is a way to display a section of another webpage, such as a table, through a separate site. Obviously I could just copy the code from one of my pages to the other, but I would prefer if it would automatically take the code from one page and display on another? I hope I am making a bit of sense. Nick C. hii, i'm using a 3 html frames in my web page, top, left and rite content frames. i'm using draggable frames, every thing is fine, but i want to show my user session time out in that main page(containing 3 framesets), below is the code. i dun know waht had happened, the content is not getting displayed except the title. can anyone please help me.. below is my code Code: <html dir='ltr'> <head> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=UTF-8"> <META HTTP-EQUIV="CONTENT-SCRIPT-TYPE" CONTENT="text/javascript"> <META HTTP-EQUIV="CONTENT-STYLE-TYPE" CONTENT="text/css"> <META HTTP-EQUIV="EXPIRES" CONTENT="-1"> <META HTTP-EQUIV="Refresh" CONTENT="1800; URL=http://localhost/Project/sessiontimeout.php"> <link rel="shortcut icon" href="http://localhost/Project/images/trrlogo1.ico"/> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Page</title> <link rel="stylesheet" type="text/css" href="http://localhost/Project/css/timer.css"> <script type="text/javascript" src="http://localhost/Project/scripts/timer-src.js" /></script> <script type="text/javascript" src="http://localhost/Project/scripts/zdragdroplib.js"></script> </head><body> <script type="text/javascript"> document.write(getWarning()); </script> <div id="warningDiv"></div> <img src="http://localhost/Project/images/load.gif" onLoad="initTimer();"> <script language="JavaScript"> var frame = '<FRAMESET ROWS="117,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="http://localhost/Project/leftmenu.php"><FRAMESET COLS="238, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="http://localhost/Project/leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="http://localhost/Project/MainMenuframe.php"' ; var pos = document.location.href.indexOf("?http://"); if (pos>0) { frame += document.location.href.substr(pos+1); } else { frame += 'dc_toc.html'; } frame += '"></FRAMESET></FRAMESET>'; document.write(frame); </script> </body> </html> i cannot see any content except the title.. please suggest me how to proceed.. Many Thanks. I have a page with several iframes, some of them are just plain old HTML in the code and some of them are printed with javascript and document.write from ad systems. The problem is that sometimes the content in the different iframes switches from page view to page view. Like the content in Iframe A is now visible in Iframe B and Iframe A is empty. I thought this had something to do with not setting the name attribute in the iframes but I'm not sure any more. Does anyone know of this problem and have a sollution for it? Greetings I have 3500 pages of content on my site and i would like to monetize all of them by placing some adds. The problem is that my advertisers might change sometimes and i don't want to update all the pages each time i decide to go for some other advertiser so i tought i should use another html file that would be displayed on all the 3500 pages and each time i would modify this file, it would update on all the 3500 pages. I would like the page to be search engine friendly too, if possible. Also don't want to use frames. So there would be small window 200 x 200 in size that would display the content of the seperate file on all these 3500 pages. So how should i do this, would java script be something to consider? I don't know much about php and would not like to use it, what would be the easyest way to do this? Also there can not be any borders in this window and it needs to be embedded in to all these 3500 pages, in exact size of 200 x 200. This system needs to work in IE, Firefox, netscape and opera!! The content would be adsense, banner or similar content. Please advise.... Sir. Turhapuro hi all - can anyone advise as to what might be the issue - a new html email newsletter i've modified from an existing template behaves differently in that the content doesn't display along with the images until you choose to download them. so instead of just seeing text without images, the entire email is blank. has anyone encountered this/can possibly advise? many thanks, tania Conflict between Mime Type and Document Type... Morning - I have recently been learning CSS and have been upgrading my site to Semantically correct code. The first templat I am building is the following page http://www.colletts.co.uk/colletts_n...ndexflash.html and validates here validates... sort of. Should I be worried about the mime type, what effect will this have on the page. If I follow the instructions and change the file extension to xhtml all hell breaks loose - http://www.colletts.co.uk/colletts_n...dexflash.xhtml IE Error - can't open thios document etc... What am I doing wrong??? Best, Mas Hi, Im trying to make my footer content align correctly to the main content when a window resizes. The apdivs don't seem to want to move at all even with a relative position etc. I have tried everything but just cant get it to work can someone help please? http://pjm.co.uk.uksite4.yourwebserv...splay&PageID=5 Also some one commented before on the amount of css and JS pages. These will al be stripped out as its an Open sources system im using! Thansk alot Joe Ok I am getting some validation errors on my site and at least some of them appear to be because I am using xhtml in an html strict doc. So which is better.... to fix the errors or use something other than the html strict doc type. fyi-here is the site: http://www.h51school.com/1/home_page.asp Thanks~ Hey there, Could anyone please explain why it tells me that it is not a valid doc type, Well that is what it says here http://validator.w3.org/check?verbos...iplayer.com%2F The actual site is http://www.online-multiplayer.com Thanks in advance for any help. basicaly what the title says i have no idea what they do. Please explain in nooob terms Hi I see a lot of these type of borders on the internet, even when signing up on this site. How can I do this myself? I thought I had once knew how to do this this in Dreamweaver but am not able to find it anymore. Thanks hi, i was wondering what is the best filetype to use for a video on the internet? i need to embed a video which can be viewed by as many people as possible so i was thinking maybe .wmv or something that can be played through windows media play and most other common video player Hi, I am having a huge problem When ever I design a page everything looks great. When I publish it and look at it from other machines the type appears fuzzy or not sharp. I am using Dreamweaver MX on a Mac PowerBook G4 and have tried leaving the type font default, setting it to Arial, Times New Roman, and others. I have tried setting the font on the page and working with CSS. Doesn't matter what I do it is always the same. Can someone please tell me what I am doing wrong? Troy I inherited a HTML/PHP project which was a written in hurry and now I am trying to put in some editing and other confirmations. A type=reset was added to the screen and there is 2 option lists. When the form is first load only 1 list is displayed. Then the user makes the selection and depending on the selection the second list would display or not. On the reset option would like to hidden the 2nd selection but seems I can not get the right coding. I have tried onclick on the <input but no luck. There is a onSubmit on the <form which calls some validation checking. Tried put the call to function to hide the option list but no luck. Of course, I probably did not have the coding correct. How can I hide the 2nd option list on reset. Hi, Using servlets and javascript. When I upload a file based on the mime type I operations are delegated from servlet. picture.gif file's mime type is image/gif Problem I am facing is when I remove the file extension of any file say picture.gif file to picture mime type is application/octet-stream. How can I detect the mime type of a file given the filestream or any other solution to this problem Thanks. I have the following tables coded in an e-mail which I send to new contacts to invite them to subscribe to our information network - there is more to the message but the rest seems to be working fine. When a contact receives the message and is just reading it, she or he can check the selections or the button to select the information category or the method of communication, but when she or he replies to or forwards the e-mail the selections disappear. Is there a way to retain the selections on the reply or forward? I also need this functionality for other e-mail requests. Any suggestions would be gratefully received. Please note: I am very much a novice and have inherited a lot of documents etc from my predecessor, i.e. the original e-mail is not of my own creation but one that I am attempting to modify to do what I need it to do. <TABLE class=resultscolor1> <TBODY> <FORM> <TR> <TD colSpan=5><BR> <DIV class=inputlabel1><FONT style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'" color=#0000ff size=4><B>Which of the following notices would you like to receive from GFTC? (Click to check a category; please select all that apply.) <BR></DIV></B></FONT> <TR> <TD vAlign=top><INPUT type=checkbox></TD> <TD><STRONG>Upcoming Courses & Events</STRONG></TD></TR> <TR> <TD vAlign=top><INPUT type=checkbox></TD> <TD><STRONG>GFTC Newsletter</STRONG> (Email editions in March & September. Print editions in June & December)</TD></TR> <TR> <TD vAlign=top><INPUT type=checkbox></TD> <TD><STRONG>Innovation Seminar Notices</STRONG> (events held for Members only; occasionally attendance is offered to Non-Members also; GFTC reserves the right to determine membership status)</TD></TR> <TR> <TD vAlign=top><INPUT type=checkbox></TD> <TD><STRONG>Industry Alerts</STRONG></TD></TR></FORM></TBODY></TABLE><TD colspan="5"><BR>How would you prefer to receive GFTC information updates? (Please select one.)<BR><BR> <DIV></DIV> <TABLE> <FORM> <TBODY> <TR> <TD><INPUT type=radio value="Email, Post" name=key4> </FONT>Email & Post<BR><INPUT type=radio value=Email name=key4> Email Only<BR><INPUT type=radio value="Fax, Post" name=key4> Fax & Post<BR><INPUT type=radio value=Fax name=key4> Fax Only<BR><INPUT type=radio value=Post name=key4> Post Only</TD></FORM></TR> </TBODY> </TABLE> This is what I have in mind, only I would like it a bit better looking http://www.dynamicdrive.com/dynamici...lide/index.htm So basically, a menu thats hidden until you hover over the small part thats visible - then it slides out. Is it possible to do in jquery or mootools or similar ? I cant code myself so some tutorial would be helpful. Thanks in advance |