PDA

View Full Version : Site Logo/ Watermark Script



alraol
03-21-2012, 08:31 PM
1) Script Title: :: Site Logo/ Watermark Script


2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/logo.htm

3) Describe problem: Is it posible to use this script inside a frame? or is there an other script to do this.

keyboard
03-21-2012, 09:15 PM
Yes it is possible.

All you need is two or three files. on one of them (EXAMPLE: page1.html), put the script that you linked too, on a second(EXAMPLE: page1.html), put some random text just to prove it works.

Then on the third put



<frameset cols="25%,75%">
<frame src="page1.html" />
<frame src="page2.html" />
</frameset>


NOTE: I'm pretty sure frames are no longer supported with html5.

alraol
03-22-2012, 03:24 AM
Thank you, you are rigth frames is no longer suported, is it posible to use this scrpt to work into a table? or wath do you suggest?

Thank You again

keyboard
03-22-2012, 06:47 AM
That depends, are you using the table for the layout of your page? If so you should google why not to use tables for web layout (http://www.google.com.au/#hl=en&output=search&sclient=psy-ab&q=Why+not+to+use+tables+for+layout&oq=Why+not+to+use+tables+for+layout&aq=f&aqi=g1&aql=&gs_l=hp.3..0.1852l11090l0l11318l34l20l1l13l14l3l340l4478l0j4j14j2l34l0.frgbld.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=6b9d0de2ab56a6ef&biw=1920&bih=955). Using divs and css is a much cleaner option.

If you're not, you can just edit this line -



logoHTML: '<a href="http://www.dynamicdrive.com" title="Dynamic Drive"><img src="logo.png" style="width:50px; height:47px; border:0" /></a>', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"

to include a table. An example is


logoHTML: '<table width="500" height="500" style="background-color:blue;"><tr><td><a href="http://www.dynamicdrive.com" title="Dynamic Drive"><img src="logo.png" style="width:50px; height:47px; border:0" /></a></td></tr></table>', //HTML for logo, which is auto wrapped in DIV w/ ID="mysitelogo"