Jump to content

Can Someone Take The time to explain this step by step please...............


byronwells

Recommended Posts

Alright guys

 

I am new to this forum and I really need some help please...  I know this can be done in css and php but I need someone to help me... I need someone to take me step by step on how to do this

 

Please take a look at this website: http://www.supreme-host.com/web/categories.php

 

What I am trying to do is regarding the navigational bar..  I am trying to make it when you move the mouse over the home button it shows that is highlighted...

 

I am using images for buttons..  So I understand that I must create other images to get it work..  But the question is I am unsure of the css code, and where to stick it...

 

I have been struggling with this for ovewr a week..  Please can some help me

Link to comment
Share on other sites

Blah, You can do something simple like so:

<img src='image.png' name="hover1" border='0' 
onMouseOver="document.hover1.src='image_highlight.png';" 
onMouseOut="document.hover1.src='image.png';" 
onClick='window.open("http://www.example.com");' 
/><br/>

 

Basically image.png, when mouseovere'd = image_highlight.png. With onclick to go to an url..

 

But, You do know, this is the wrong forums and section for this question.

Link to comment
Share on other sites

japesu

 

I need a little bit more information/help than that please :) :)  I am very slow at this...  But when I do get it then I do get it lol

 

I gave you a working example. And this has absolutely nothing to do with PHP, PHP is  a serverside language, it doesn't even have styling.

 

If you "see" someone jump off a bridge, should you? ;)

Link to comment
Share on other sites

oni-kun

 

I am using css file linked to a php file..  I have create a lot of styling via that way using different classes for the php file to read.  So yes php is a server based, but you can still create styles in it..

 

You have show me the very old way..  I would like to be able to create a div class for it, etc.

Link to comment
Share on other sites

oni-kun

 

I am using css file linked to a php file..  I have create a lot of styling via that way using different classes for the php file to read.  So yes php is a server based, but you can still create styles in it..

 

You have show me the very old way..  I would like to be able to create a div class for it, etc.

 

You really need to stop and take a few moments to make sure you understand what oni-kun has been kind enough to tell you.

It simply isn't possible to style using PHP or create image rollovers using PHP. So you have posted in the wrong forum and you need to look into CSS and Javascript.

Link to comment
Share on other sites

Like Japesu said, in CSS use the

.yourclasshere {
     background-image: normalbg.jpg;
}

.yourclasshere:hover {
     background-image: glowbg.jpg;
}

 

I don't recommend using java script, it makes it in a sense more complicated when it doesn't have to be, and someone can easily turn off javascript on their browser.

 

Like everyone said. This is not PHP.

Link to comment
Share on other sites

i read pleasure in your post and i find u quite irational!.

thank you for this. ive been trying to rework this sincre 1999.

im really ghoing to be following this thread till it reaches touchdown, literally.

 

Do none of your posts have relevant content?

Link to comment
Share on other sites

im watching this@you

 

that's kinda creepy.

 

this is a simple image preloader with CSS:

 

...
<head>
<style type="text/css">
.preload { display: none; }
</style>
</head>
...
<img src="your_image_to_be_preloaded.gif" class="preload" />
</body>

 

or using the images as backgrounds:

 

<style type="text/css">
.nav {
     background: url(your_image_to_be_preloaded.gif) no-repeat;
     margin-left: -1000px;
}
</style>

 

either would work .. i would go with the latter for a navigation setup.  and the first for just a simple preload.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.