Jump to content

anonnerz

Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://anonnerzcorp.com

Profile Information

  • Gender
    Not Telling

anonnerz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you are willing, you could send me the code and let me have a crack at it for you. I am a web developer and have a few ideas on how to get this to work (including changing the doc-type). PM me.
  2. Hey, I am trying to get my css file (located in ./) to include a font style from a ./Fonts file. I have investigated it and found that its possible through a code like: [code]#container { font-family: Font; src: url('./Fonts/Font.ttf'); }[/code] But i cant get it to work. Here is what i've got: [code]span.title_header { background-image: url(Images/news_bgtile.png); padding-right: 6px; margin-left: 3px; color: #FFF; font-size: 28px; font-family: Steelfish; src: url("Fonts/SteelFish.ttf"); font-style: italic; font-weight: bold; }[/code] Can anyone help?
  3. Hey. Im having an issue using opacity to make shading my main background in FF. It works in IE but not FF. Ok the basis of what ive done is to make 2 divs over my main background image; the first div has a background of say black with an object opacity (via filter: alpha(opacity=30%) for IE and -moz-opacity: .3 for FF) so now you have a darker shade of the background. Then the second div that is in that first div (the one with the background) has no background and contains all the content. In IE I am able to make the objects opaque using the position: relative CSS tag, however this doesnt work in FF. Ok that's kinda confusing... so try this: [code] body { background-image: url(Background_Image.png); } #div1 { -moz-opacity: 0.3; filter: alpha(opacity=30%); } #div2 { position: relative; } [/code] [code] <div class='div1'> <div class='div2'>    Holds all the stuff I want to be fully visible (opacity 100%) </div> </div> [/code] This technique works in IE but not FF, anyone know why? or another technique to make it work in FF? Cheers.
  4. Thanks for looking if you came, fixed it. For others with similar problem you have to put the text area in a form and refer to that form via document.form.textarea.value (with relevant values supplementing form and textarea of course). Thanks =D
  5. I've been trying for ages to be able to set textarea values in firefox to no avail. It just doesn't register the textarea... Any help? Here is the relevant codes: From the javascript file: [code]function set(toset, img, iid, thelink) { link = thelink; do_id = iid; document.main.src = img + '&x=300&y=300'; Image_Desc.value = toset; }[/code] The image setting it (it's an onmousedown... as you can see) [code] onMouseDown=" set('{$this->sql_fetch[desc]}', 'image_resize.php?src=uploads/{$this->sql_fetch[File]}', '{$this->sql_fetch[id]}', 'uploads/{$this->sql_fetch[File]}'); setCookie('page_{$this->sql_fetch[Item_ID]}','{$this->sql_fetch[File]}', '6'); setCookie('page_{$this->sql_fetch[Item_ID]}_desc', '{$this->sql_fetch[desc]}', '6'); setCookie('page_{$this->sql_fetch[Item_ID]}_x','300', '6');  setCookie('page_{$this->sql_fetch[Item_ID]}_y','220', '6'); setCookie('page_{$this->sql_fetch[Item_ID]}_link','uploads/{$this->sql_fetch[File]}', '6')" > [/code] The textarea: [code] <textarea name="Image_Desc" cols="30" readonly align=left style='height: 200px;'><?if (file_exists('Uploads/'.$_COOKIE[$cookie])) { echo stripslashes($_COOKIE['page_'.$_GET[id].'_desc']); } else if(!file_exists('Uploads/'.$_COOKIE[$cookie])) { echo $Pic_Viewer->first_image[desc]; } ?></textarea> [/code] It all works in IE but firefox doesn't like it. Any ideas?
  6. Ok worked it out, thanks =D
  7. Hey, I've been making a script recently whic requires me to include variables/data/information (w/e) from a SQL database. I have got to a point where I have information put into double quotes, an example of which is: [code] OnMouseDown='set("{$this->sql_fetch[desc]}", "image_resize.php?src=uploads/{$this->sql_fetch[File]}", "{$this->sql_fetch[id]}", "uploads/{$this->sql_fetch[File]}"); [/code] However one of the variables I am calling already has an apostrophe in it, such as(quote from temp. database): [quote]This description holds an apostrophe (' <-- look it's there... and again) to see what it does to my code[/quote] ... I am wondering if there is any way to get around this. I am aware of the \' trick used when echoing, can this be used in some way? Thanks everyone. Oh and BTW the part where the problem is (the above code) is in an EOF echo/variable assignment... If that helps you think of something at all... therefore come to think of it it's an issue with the inclusion of the same marks in javascript...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.