|
|||||||
| HTML Discussion and technical support for building, using and deploying HTML sites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
If you read this, then pleeeeeeeeze replay
Well, as you know, I haven't yet mastered HTML. So my questions may be sort of dumb. The last thing I learnt was Frames And so, I decided to make a small project which I nammed "Soap Super Browser". Well, I know the name is somehow dumb and meaningless, but it just came in mind lol... It ain't a browser, but just a page made up of two frames. You could see it at : http://www.fileupyours.com/files/817...%20Browser.zip I made it but it doesn't work. It's supposed to do the following : 1) Show two frames : "Navigations.html" & "Start Page". 2) Thr "Navigations.html" includes two pictuers : "Back" and "Forward" buttons. When you open a site in the "Start Page" ad click on the back, it should go to the previous and vice versa... It's easy to understand if you download it and see it... Plz tell me where the mistake it! Last edited by • MaNiC MoE •; 04-06-2007 at 09:49 AM. Reason: I misused thr HTML tag thingy |
|
#2
|
||||
|
||||
|
It'd be nice if you could tell us exactly what the inconsistencies are between how it working and how it should be.
Also, in your markup (which is atrocious, but that's for another post) you've referenced files with all lower-case URLs when the actual file names are in title case.
__________________
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning. (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero. |
|
#3
|
||||
|
||||
Yeah, I maybe it ain't clear...Well here's what I meanIt's a webpage that has two frames ("Navigation.html" & "Start Page.html"). 1. Navigation Page - This page includes two images ("Back Button.bmp" & "Forward Button.bmp"). 2. Start Page - This is just a welcome screen that appears, the user could open other websites through iy. HOW IT WORKS?? That's how it works : The user opens a website throughthe "Start Page.html" frame. Then he clicks on the "Back Button.bmp" on the other frame ("Navigstion.html"). The "Start Page.html" goes back to the previous page. When he clicks on the "Forward Button.bmp" in the "Navigation.html" frame, it goes to the forward page. So basically, these images act like the back aand forward buttons in the browser... That's what I did but it didn't work. I couldn't find the mistake. Maybe you could ---------------------- Here's the source code Navigation.html : HTML Code:
<html> <!-- Hyper Text Markup Language --!> <head><title>Navigation Tools</title></head> <body background="background.bmp"> <code> <b><u>Tools</b></u> <a href="javascript:history.back();" target="showframe"><p><img src="back button.bmp"></p></a> <a href="javascript:history.forward();" target="showframe"><p><img src="forward button.bmp"></p></a> </code> </body> </html> HTML Code:
<html> <!-- Hyper Text Markup Language --!> <head><title>Welcome Screen</title></head> <body background="background.jpg"> <hr><br><br><br><br> <h1 style="color:yellow" align="center">Welcome to Soap Super Browser v1.0 <br> This is made by • MaNiC MoE • <br> For more information, send me at <a href="mailto:MaNiC_MoE@HoTMaiL.cOm?subject=Contacting%20You">My E-mail</a> <br><br><br><br><hr> <br><br> <h2 style="color:white">Please select one of thee following site to visit: <a href="http://www.yahoo.com/">Yahoo!</a> <a href="http://www.msn.com/">MSN</a> </body> </html> HTML Code:
<html> <!-- Hyper Text Markup Language --!> <head><title>Soap Super Browser v1.0</title></head> <frameset cols="110,*"> <frame noresize="noresize" src="Navigations.html"> <frame noresize="noresize" src="Start Page.html" name="showframe"> </frameset> </html> |
|
#4
|
|||
|
|||
|
I got a security warning me about the javascript forward and backwards buttons...something your users to your website will definetly be scared of...so I would suggest you think of a better way of doing the forward and backword linking. Once I accepted the activex control, it worked.
|
|
#5
|
||||
|
||||
|
Quote:
HTML Code:
<a href="#" onclick="history.back();return false">... <a href="#" onclick="history.forward();return false;">... Quote:
Quote:
__________________
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning. (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero. |
|
#6
|
||||
|
||||
|
Quote:
. Well, if i make a forum, I'll aviod using pop-ups and use frames.
|
|
#7
|
||||
|
||||
|
thx a lot..
But I need to understand what the "better" way of writing the code and how it works (as you no that this langauge is new for me) And what do you mean by : Quote:
Last edited by • MaNiC MoE •; 04-07-2007 at 07:26 AM. Reason: Made it clearer |
|
#8
|
||||
|
||||
|
Javascript aside, -unless you are prepared to also write an entire site in non-FRAMEs, better to avoid use of FRAMEs to begin with. Some browsers don't do FRAMEs and they are quite deprecated anyway. I think your HTML is circa version 3.1 or thereabouts. You could do an "iFRAME" which is a bit more supported, or use the <object> tag to insert one HTML page into another.
A good source of ready-to-use document layouts can be found at www.dynamicdrive.com. They should have something similar to FRAMEs that will allow you to create a 'page that displays inside of another page'. Always seek one that is compatible with "IE, Firefox and Opera" (they have little icons next to the script's name to let you know the compatibility).
__________________
Help Save Ana My Portal: I Build WebPagesPricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html AUP: http://www.jupitermedia.com/corporate/privacy/aup.html I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey Internet.com freelancers |
|
#9
|
||||
|
||||
|
thx a lot
Next Wednesday, I'll practice the <iframe> tag and how to use it. But it ain't always visible. In other words, if it's at the top, the visitor should scroll up to see it, unlike a normal frame. Plus, I tried using it : http://pic7.piczo.com/MaNiC-MoE/?g=3...7&vsrc=preview rhx
|
|
#10
|
|||
|
|||
|
take a look at php include (just type "php include" into google)
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|