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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to open a new window on a text prompt 1

Status
Not open for further replies.

GladysPym

Technical User
Jan 6, 2003
76
GB
I need to open a small window, using a behaviour from a text link, and not from an image.
On my page at the bottom of 'Small CPD Groups', to the right of the 'Back to top' is a line saying 'to register interest click here'
I'd like to use a behaviour to onclick the 'here' to create a small windowed version of interest.html.
It doesn't work. Is it because I've put it within a span?
I'm sure this is a silly easy problem, but, help?
The css, if it's that, is in screen.css

Thanks, guys.
 
Dreamweaver and its custom functions, ughh.

anyway, using the OnClick event instead of onfocus should make it work.

I suggested just using the window.open function directly in the Dreamweaver thread, but It should work just the same keeping dreamweaver's own MM_openBrWindow function as is but changing onfocus to onclick.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Sweet, Vacunita

Working, now.

The only thing that's left is that the "here" needs to be blue, and underlined, like a link.
I can't seem to get that to happen at all.
Any ideas?
 
You gave the span a class of mainbarblue, you can either use that ,or another class if you don't want to alter any other element that has that same class name, and specify the color and text-decoration in the CSS for it.

Code:
.mainbarblue{
color:blue;
text-decoration:underline;
}




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks, Phil

I had a number of versions of mainbarblue

ta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top