Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Javascript Text/Image manipulation

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion
Register FAQ Community Calendar

Javascript Text/Image manipulation
Reply
 
Thread Tools
Old 01-08-2004, 21:21   #1
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Javascript Text/Image manipulation

Help!? - I am currently redeveloping one of my websites and have started to attack! the menus...

I want to have a image (the button) which I am displaying on screen within a table:
<td width="10%"><a href="loadpage.htm" OnMouseOver="ypSlideOutMenu.showMenu('menu1');hide me();" OnMouseOut="ypSlideOutMenu.hideMenu('menu1');showm e();"><img src="http://mysite.com/images/stdbutton.gif" alt="Menu1" /></a></td>

The button is a plain graphic I.e. {______}
What I want to do is overlay some text on top of the image I.e. {_MENU_}

Therefore I can have one image to reuse on my sites without defining one for each menu option.
Tricky is offline   Reply With Quote
Advertisement
Old 01-08-2004, 23:42   #2
punky
Inactive
 
Join Date: Jun 2003
Age: 45
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
Re: Javascript Text/Image manipulation

Quote:
Originally Posted by Tricky
Help!? - I am currently redeveloping one of my websites and have started to attack! the menus...

I want to have a image (the button) which I am displaying on screen within a table:
<td width="10%"><a href="loadpage.htm" OnMouseOver="ypSlideOutMenu.showMenu('menu1');hide me();" OnMouseOut="ypSlideOutMenu.hideMenu('menu1');showm e();"><img src="http://mysite.com/images/stdbutton.gif" alt="Menu1" /></a></td>

The button is a plain graphic I.e. {______}
What I want to do is overlay some text on top of the image I.e. {_MENU_}

Therefore I can have one image to reuse on my sites without defining one for each menu option.

You can define layered panels in HTML, like this:

Code:
<div id="Menu1" style="position:absolute; width:75px; height:20px; z-index:1; left: 50; top: 100px; Some Menu Text</div>
The z-index is greater than 0 so should appear above the image. The position absolute means it is positioned properly. You should have a div with you image as well so you have full control over that as well.

HTH
punky is offline   Reply With Quote
Old 02-08-2004, 05:16   #3
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Javascript Text/Image manipulation

Just a note about absolute positioning: be very careful with it, test it in at least two different browsers and at as many screen resolutions as possible.
For example, some text positioned 100 pixels from the top of the screen might look fine in IE but most other browsers tend to use extra line breaks around headings and things so the text might actually appear on top of other text, making it look pretty bad.
Richard M is offline   Reply With Quote
Old 02-08-2004, 21:40   #4
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Re: Javascript Text/Image manipulation

Cheers guys ... Playing with this now!
Tricky is offline   Reply With Quote
Old 02-08-2004, 22:18   #5
bopdude
Inactive
 
bopdude's Avatar
 
Join Date: Jun 2003
Location: Teesside
Posts: 8,315
bopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny stars
bopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny starsbopdude has a pair of shiny stars
Send a message via MSN to bopdude
Re: Javascript Text/Image manipulation

Is anyone else having to scroll horizontally to read \ view this thread seems to me looking at that some ones user details have gotten misshaped \ sized

EDIT : It's punkys details that are offset to the left of everyone else's, is this just my side ?

EDIT EDIT, its the left and right borders of punkys posts in my window

Anyone ????
bopdude is offline   Reply With Quote
Old 02-08-2004, 23:26   #6
Matth
Inactive
 
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
Matth has reached the bronze age
Matth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze age
Re: Javascript Text/Image manipulation

I'd be inclined to use background, either a table cell background (Netscape/IE extension to HTML) or a style background applied to whichever element it works best with - a few other style parameters would be needed, to size the element and centre the text within it.... with luck, it would degrade gracefully in non-CSS older browsers.
Matth is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:01.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum