Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Review my Site 1

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Can someone review my site?? I'm using iFrames so my site works in IE for now, and only under 800 resolution, if anyone has suggestions on how to make my site work in 1024 resolution, i'm open to suggestions.
Thanks... I have not failed; I merely found 100,000 different ways of not succeding...
 
Hi mate,

First thing I noticed about the site was buttons. I personally think that you should consider a new font that is easier to read.

Secondly, I took a quick look at your coding and noticed that you have two seperate head and body sections, I`m not sure whether this is something that the server has generated or whether you have coded it that way.

Have you previously asked for a site review? The reason I ask is that I have read that content before and don`t know when..

Other than the above points, looks good..

Hope this helps Wullie

 
Wullie, hi thanks for the review. Ummm, I can try playing around with the button font, that's no big deal. As for the seperate <head> and <body> sections, not sure what you mean there...and nope, this is the first time i've asked for a review here...
Do you have any suggestions on how I can make my site 1024 resolution friendly?? I have not failed; I merely found 100,000 different ways of not succeding...
 
the only thing I noticed is that the iframe (I think, anyways, the frame that has the content in it on the first page) spills waaaaaay over on the left side of the iframe. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
What browser and version did you notice that problem on?? I have not failed; I merely found 100,000 different ways of not succeding...
 
IE 5.50, but I am running 1024x768 res. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
theEclipse, as mentioned on the above post and on the site, at the moment my site is only catered for 800*600 resolution...I am looking for a way to make my site compatiable for both resolution...if you have a way or a solution, i'm open to any suggestions...
Thanks... I have not failed; I merely found 100,000 different ways of not succeding...
 
well, you could test for the screen rez and resize that frame (iframe?) appropiatly, but thats about all I can think of. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
theEclipse, I already tried that. I do have the coordinates for both the 800 and the 1024 resolution, but what I need to know is how does the right coordinates load the iFrame. If a user has a 800 resolution then iFrame should load coordinates one, if the user has 1024 resolution then iFrame should load coordinates two...kno wha I mean??
Thanks for the help... I have not failed; I merely found 100,000 different ways of not succeding...
 
wullie must have some time on his hands! that is the exact script I was talking about! Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
Hi mate,

LOL

I just pick up code samples as I go along.. If I see a useful piece of code then I store either the url or the code itself. It saves time in the long run searching the net for something that I found 6 months ago..

Glad to be of help Wullie

 
yea, I just started that a month or so ago when I could no longer find several scripts I needed, so I just started storing the urls in my links folder. now they are accessible by site name right from ie. ;-) Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
wullie and theEclipse, Hi. I looked at the code on that site you reccomended and that is what i'm trying to avoid to do. If I do that, then I need two different index pages, ont for the 600 resolution and another for the 1024 resolution. And i'd have to maintain them both...
Is it possiable to use CSS or JS to just load the coordiantes of the iFrame and the layers?? If it's not then I'm gonna use the script that wullie posted...and the script that theEclipse had in mind...:)
I have not failed; I merely found 100,000 different ways of not succeding...
 
absolutly!

it looks like you will only have one difference between the resoloutions: the size of the iframe.

insert this in the script section:

<script language=javascript type=&quot;text\javascript&quot;>
var iframeSize=new Object();
iframeSize.width=350;//default values
iframeSize.height=400;

//now fill in the values for the size of the iframe based on each rez:
if ((screen.width == 640) && (screen.height == 480)){
iframeSize.width=200;
iframeSize.height=250;
}
else if ((screen.width == 800) && (screen.height == 600)){
iframeSize.width=200;
iframeSize.height=250;
}
else if ((screen.width == 1024) && (screen.height == 768)){
iframeSize.width=200;
iframeSize.height=250;
}

function printIframeTag(){
document.write('<iframe src=&quot;MainPage.html&quot; height=&quot;'+iframeSize.width+'&quot; width=&quot;'+iframeSize.height'+&quot; name=&quot;right&quot; bottomscroll=&quot;no&quot; frameborder=&quot;0&quot; bgcolor=&quot;&quot;></iframe>');
}

</script>


then in your iframe div, just call the printIframeTag function. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
after taking another look at your site, I see the problem. your problem is not in the size of the iframe, but rather the position of it.

I noticed that the iframe seemed to be the right size, but it was just too far left, as is the search box/button and the date.

my suggestion would be to dynamically change the elements left css attribute, based on the screen.width property. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
theEclipse, that is what I want to do. I want to somehow using either CSS or JS to dynamicaly move the iFrame postion for the main window, time and the search function...
Any idea on how to do tha?? How to start?? I have not failed; I merely found 100,000 different ways of not succeding...
 
i see two soloutions, one easy but possibly less accurate, and the other is harder but almost guaranteed accuracy.

1)instead of using the center tag to place the background image, position it absoloutly also. this will allow the background to drift with the iframe, search box, and the date.

2)here is what you do:

next, you need to start with 640x480 rez, set the css attributes so that the iframe lines up with its container. no need to worry about the other two right now, as long as you make sure the iframe lines up exactly where you want it.
repeat this procedure for 800x600, 1024x768, 1152x864, 1280x1024, 1600x1200, every screen resouloution you can get your hands on. (those are all the ones my video card will hold). lastly, make a script that tests the screen.width for the different widths and positions the content accordingly.

example:
var offBy;
if (screen.width==600)
offBy=0;
else if (screen.width==1024)
offBy=79;
..
...
....

with(document.all){
iframeDiv.style.pixelLeft+=offBy;
searchDiv.style.pixelLeft+=offBy;
dateDiv.style.pixelLeft+=offBy;
}


hope that helps. try the first one first, then the second one.
Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
theEclipse, Hi, I will try out you're suggestion this weekend, when I have time to do some trial-and-error type work...
I will let you know by sunday night...
I have not failed; I merely found 100,000 different ways of not succeding...
 
I just checked out the first page, and I got an error.

It was a runtime error...and when I went to debug it said it errored here:

<script language=&quot;javascript&quot;>geovisit();</script>

The &quot;geovisit();&quot; was hightlighted in debug saying that that was the runtime error.

I am assuming this was added by Geocities so you probably cannot do anything about it, but I thought I would let you know.

I am using IE6 on WinNT4 in case you care.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top