Ddr
1-10-04, 02:21 PM
Please bear with me as I try to explain the evolution of this problem and what the need is. Some background information will save everyone some time by making any suggestions you offer more valid.
I have a small, private BB using Invision Powerboard 1.2. I had a nice idea that has become much more work than I thought it was going to be. (Gee, and that NEVER happens in web design *lol*) I wanted to create a thread that had a random image displayed each time a member viewed or refreshed my post.
What went wrong? Including code is severely limited by the Board. I can post a single image. That's easy. Simple HTML is permitted with Admin permissions. However, I couldn't use the random pic script in PHP in my post. I couldn't use a PHP Include to call the script if it was off-board, either.
So the next logical step was to create a separate page, off-board, to run the PHP script and just use a simple "a href" tag in my post to point the viewer to a new window with the random pics. I saw two choices here..."target=_blank", which works, but is a deprecated tag, or javascript to call the page and set it's parameters. I will save you a long story and just say that the Board didn't like javascript. So this left me with having to use the "target=" tag. This brings us to where I need some help. It could be that I have been using WYSIWYG editors too long and have forgotten some basics, but I am stumped.
The pics that I want to show in the new window are relatively small. I edited them down to save on bandwitdth usage. Therefore, I dont need a full sized window to show them. If I was able to use javascript, I would have made the window 400 x 350 pixels, only given it the menu bar, made it resizable, and specified it's location on the screen as Top Left. But I can't use javascript in my thread to direct how and where the popup window will be created. Is there another way to get this done? I really dont want full a full window to pop up and mask my Board. My small pics will look dismal in a large, mostly blank window, too.
I am not all that good with CSS, but I think it only guides the content of the page, not the layout of the browser, right? Is there a way to use javascript in the popup window's own <head> html that would redesign the browser layout?
Thanks in advance for any suggestions.
Oh, one idea I had, but really dont want to use, is to make the link on the Board go to a regular html page which redirects the viewer to a different page. I could then use javascript to close the redirection page and create the popup picture viewing window any size and with the attributes I want.
Oh, and Happy New Year!
Dale
I have a small, private BB using Invision Powerboard 1.2. I had a nice idea that has become much more work than I thought it was going to be. (Gee, and that NEVER happens in web design *lol*) I wanted to create a thread that had a random image displayed each time a member viewed or refreshed my post.
What went wrong? Including code is severely limited by the Board. I can post a single image. That's easy. Simple HTML is permitted with Admin permissions. However, I couldn't use the random pic script in PHP in my post. I couldn't use a PHP Include to call the script if it was off-board, either.
So the next logical step was to create a separate page, off-board, to run the PHP script and just use a simple "a href" tag in my post to point the viewer to a new window with the random pics. I saw two choices here..."target=_blank", which works, but is a deprecated tag, or javascript to call the page and set it's parameters. I will save you a long story and just say that the Board didn't like javascript. So this left me with having to use the "target=" tag. This brings us to where I need some help. It could be that I have been using WYSIWYG editors too long and have forgotten some basics, but I am stumped.
The pics that I want to show in the new window are relatively small. I edited them down to save on bandwitdth usage. Therefore, I dont need a full sized window to show them. If I was able to use javascript, I would have made the window 400 x 350 pixels, only given it the menu bar, made it resizable, and specified it's location on the screen as Top Left. But I can't use javascript in my thread to direct how and where the popup window will be created. Is there another way to get this done? I really dont want full a full window to pop up and mask my Board. My small pics will look dismal in a large, mostly blank window, too.
I am not all that good with CSS, but I think it only guides the content of the page, not the layout of the browser, right? Is there a way to use javascript in the popup window's own <head> html that would redesign the browser layout?
Thanks in advance for any suggestions.
Oh, one idea I had, but really dont want to use, is to make the link on the Board go to a regular html page which redirects the viewer to a different page. I could then use javascript to close the redirection page and create the popup picture viewing window any size and with the attributes I want.
Oh, and Happy New Year!
Dale