Help - Search - Members - Calendar
Full Version: Replacing searchbar with an image!
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
Kolourrz
I would like to know what code to have an image where the search bar originally is, which is above the blog only, not the modules.

Thanks for any help recieved! :]
emberfly
are you using custom modules? regular modules? are your modules on the left? right?
vintage-toile
^i think they mean a code for a banner above the layout(?)
there is a script for this somewhere in CB scripts (look at the navbar on createblog for scripts, select myspace scripts)
search through there and there should be one for that there.
venti-anemoi
Well, the search bar has the class ".search"

Try this:

CODE
<style type="text/css">
.searchtext, .searchop, .searchsubmit
{display: none;}

table.search
{width: ###px;
height: ###px;
background-image: url(URL HERE);
background-repeat: no-repeat;
background-position: top left;
background-color: none;
cellpadding: 0;
cellspacing: 0;
margin: 0;}
</style>


The first part will hopefully get rid of the search input, dropdown menu, and the "Search" button. In the second part, replace URL HERE with the URL of the image you want, and you can change the repeat and position of the image as necessary, as well as the background color. Oh, and you can edit the width and height of the bar by replacing the ###s with actual numbers.

I haven't tried this code out; I just studied the default Xanga source code, so if it doesn't work, tell me and I'll see what I can do.
manny-the-dino
Due to this topic being 2 weeks old & the problem being solved, this topic is Closed & Moved. PM me if you'd like for me to open this. _smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.