Computing.Net > Forums > Web Development > Positioning a Search form on webpag

Positioning a Search form on webpag

Reply to Message Icon

Original Message
Name: josephbupe
Date: February 4, 2008 at 00:17:48 Pacific
Subject: Positioning a Search form on webpag
OS: Windows XP
CPU/Ram: Intel 256
Model/Manufacturer: Intel
Comment:

Hello everyone!

I have a website but some visitors have said my search box can't desplay in position. They say it overlaps other elements on my page.

Can someone be kind to analyse the codes and advise me on how i can have the Search Form centered? At now it is within the <DIV>. I used the WebBuilder 4 for coding most website elements and imported the Search form.


True measure of life is the amount of love you leave behind...


Report Offensive Message For Removal

Response Number 1
Name: allam_rahmeh
Date: February 15, 2008 at 11:24:18 Pacific
Subject: Positioning a Search form on webpag
Reply: (edit)

That is because the visitors use different screen resolution.
You can use this java script code to force the visitors to change there local screen resolution setting


Place this code at the header of the page .


<script>
function check(){
if ((navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Netscape") != -1) || (navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
size = screen.width + "x" + screen.height;
if (size == "800x600"){
top.location = "note.htm";
}
}
}
</script>

Then create an ststic page with name "note.htm"
Contain a simple text informing the visitors to change there screen resolution

Allam Rahmeh


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Positioning a Search form on webpag

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software