javascript link tb insert
- Started
- Last post
- 10 Responses
- georgietexan
I have a an image button that I would like to use to change a tb on my web page. I would like to pull an external .html film in this tb when I click this image. I'm using php include to pull this data into the tb but I didn't how to make the button do this function.
- georgietexan0
well I would like to change the elements of a TB by click on an image. I would like to call up an html file in instert in TB
- jevad0
what the hell is TB?!
- georgietexan0
sorry a meant DIV layer
- jevad0
dunno about loading .html pages - that would be very tricky - but on this page:
http://www.marthasulfridge.com/g…
I am swapping div layer visibility on mouseclick of an image...
- georgietexan0
have you used php and the include function? I would to do just what you did on that page but not hide layers but call up a page. Ever heard of this using ssl
- mitsu0
if it's the same html page that's always included, then just set the display properties of the div tag with the images onclick event. got it?
- georgietexan0
well yeah I just can't seam to get it to work right? anybody out there that can give me a little help I really want to figure this one out. it 's for school
- georgietexan0
like so?
<a href="" >
- mitsu0
here. replace square brackets where needed: (i didn't test this, but it's pretty basic, so you should be able to figure it out)
[script]
function setdisplay()
{
if(div1.style.display=="none")
{
div1.style.display="";
}else{
div1.style.display="none";
}
}
[/script][img src='blah.gif'
onclick='setdisplay()'][div style='display:none;' id='div1']text n' stuff[/div]