How to remove gray line around an empty image in DW CS6
I have an image that I retrieve from a database (the path) files are stored in a folder.
However when there is no image the image outline is still there.
I have managed to remove the image dreamweaver CS6 gives you automatically (if there is an error etc.) , however the outline is still there even if you set the border to zero. When there is an image it is shown with no border
Is there a solution to remove the border of the empty image or remove the empty image all together
Please find my code I'm using below
<img src="<?php if (is_null($row_Recordset1['SmalImage2'])) {
} else {
} $file_path.$row_Recordset1['SmallImage2']; ?>" alt="<?php echo $row_Recordset1['Manufacturer']; ?> <?php echo $row_Recordset1['Model']; ?>" name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','<?php echo $file_path.$row_Recordset1['LargeImage2']; ?>',1)"border = "0"></td>
Thanks again for looking
I have now changed the code as you said it is looking as follows:
<?php if (!is_null($row_Recordset1['SmallImage2'])) { ?>
echo $file_path."|".$row_Recordset1['SmallImage2']; exit();
<img src="<?php echo $file_path.$row_Recordset1['SmallImage2']; ?>" alt="<?php echo $row_Recordset1['Manufacturer']; ?> <?php echo $row_Recordset1['Model']; ?> name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','<?php echo $file_path.$row_Recordset1['LargeImage2']; ?>',1)"border = "0"><?php } ?>
however
echo $file_path."|".$row_Recordset1['SmallImage1']; exit();
is written in black (not sure if that is what you wanted)
the source code is as follows:
<td width="67"><img src="../files/Images/product/image.jpg" alt="alt text here" name="t1" width="60" height="60" id="t1" onClick="MM_swapImage('main','','../files/Images/product/image.jpg',1)"></td>
<td width="60">
echo $file_path."|".$row_Recordset1['SmallImage2']; exit();
<img src="../files/Images/product/image.jpg" alt="alt text here name="t2" width="60" height="60" id="t2" onClick="MM_swapImage('main','','../files/Images/product/image.jpg',1)"border = "0">
</td>
<td width="60"><img src="" alt="alt text here" name="t3" width="60" height="60" id="t3" onClick="MM_swapImage('main','','../files/Images/product/',1)"border = "0"></td>
<td width="245"><img src="" alt="alt text here" name="t4" width="60" height="60" id="t4" onClick="MM_swapImage('main','','../files/Images/product/',1)"border = "0"></td>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="4"></td>
<td width="0"></td>
also the first image is now squashed up in the preview
Similar Messages
-
I want to ask you how I can remove this blue dashed line?
http://i.stack.imgur.com/WQpwt.png
Ref javafx 2 - How to remove dashed line - Stack OverflowHi,
This is my code. How do you want to modify this?
List<String> members = new ArrayList<String>();
FileInputStream fstream = new FileInputStream(cube);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
while ((strLine = br.readLine())!=null)
if(!(members.contains(strLine)))
members.add(strLine);
in.close();
mail.send(members);
Thanks, -
How to remove new line character from query output?
Hi,
How to remove new line character from query output?
have tried select replace(column_name, CHR(10), ' ') from table_name.
Edited by: GreenHorn on Sep 11, 2008 12:53 AMPlease consider, that windows uses a sequence of chr13||chr(10) Unix uses only one character chr(10).
The new line character(s) may be OS-dependent.
You could consider both with:
replace(replace(column_name, CHR(13)||CHR(10), ' '),CHR(10),' ')
Hartmut
Edited by: hartmutm on 11.09.2008 01:32 -
How to remove blank lines in the end of list .
hi,
in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
so plz help me how to remove the blank lines here and immediately print the endof page.Hi,
will this work for you.
SET BLANK LINES OFF.
These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
Regards
Viswanath Babu -
How to remove characters/lines from the beginning of an InputStream
Hi,
I have a program which receives several InputStreams. From each of these streams I have to remove 2 lines from the beginning. After the lines are removed, all the streams are combined to one with SequenceInputStream and read in one chunk. Is there an easy/simple way of doing this?
One option I thought would be to read the char by char until 2 end of line chars have been detected and then read the rest of the data to a buffer. And the create a ByteArrayInputStream out of this buffer. Problem with this approach is, that the amount of data can be large, so putting all the data in to memory might cause problems.
Another option is to use BufferredInputStream and use the readline() method twice to get rid of the lines that are not needed. After this I would write the data to some output stream, which is then converted back to input stream. Propably would work, but sound too much of work for a simple thing like this. There has to be better way.
To make it simple, what I need is a method that looks like the following, or something similar
* Removes n number of lines from the beginning of a InputStream.
* @param is InputStream where the lines are removed
* @param numberOfLines int value to indicate how many lines whould be removed
* @return InputStream where lines have been removed.
public InputStream removeLines(InputStream is, numberOfLines);Thanks.Here's the code, feel free to use it. Comments are also welcome.
public InputStream removeLinesFromTheBeginning(InputStream is, int numberOfLines) throws IOException
char c = 'c';
int i = 0;
for(int n = 0 ; n < numberOfLines ; n++)
do
c = (char)is.read();
System.out.print(c);
if(c == (char)-1) // end of stream reached before any newline characters were found.
return null;
i++;
while(c != '\n');
System.out.println();
System.out.println("Characters removed:" + i);
System.out.println("n: " + n);
i = 0;
return is;
}Edited by: dave_spaghetti on Jun 16, 2009 5:42 AM
Fixed a bug. -
How to remove white line that appears on background of flash file when viewing in powerpoint?
When importing a swf file into powerpoint with a background colour a thin white line appears on the top of the flash movie when played in powerpoint. The white line disappears when you click onto another slide and back again, but always appears when initially playing the slide. Anyone have any ideas why this is and how to remove it?
Any help is appreciated.
DomDoesn't the Location Bar (URL's) also disappear in the Add-ons Tab? <br />
Separator or border used to delineate the User Interface (Toolbars) from the content area.
Contact the developer of Tree Style Tabs. If that white line doesn't appear until you click on a Tab, I would call it a Bug or glitch in that extension. -
How to remove balnk line on txt file??
Anyone can help me please?
Tks,
Elber.may be this helps??
How to Delete a line from a file?
http://unix.ittoolbox.com/groups/technical-functional/shellscript-l/removing-last-line-from-a-txt-file-798004 -
Anyone know how to remove a envelope around a PDF file?
anyone know how to remove an envelope from a PDF file imported to AI?
Ask your question in the Acrobat forum:
http://forums.adobe.com/community/acrobat/acrobat_windows -
On outgoing messages, when I look in MONI, I see properly formatted XML message.
The first line of all my outgoing files has this line:
<?xml version="1.0" encoding="UTF-8" ?>
Is there a way to suppress this?
If so, is there a way to suppress for only certain partners within one interface?
Thanks,
JeffHi Jeff,
As others pointed without this line the document will not be a valid document. Can you tell your complete requirment. One of these kind of requirement is discussed in this thread, you can see whether its the same in your case or not. If not then tell your complete req. so that somebody can help you out here.
Remove first line in the XML Document
Regards,
---Satish -
How to remove horizontal lines in ALV_LIST
I want to remove horizontal lines from the list. But cannot please help.
gc_true = 'X'.
gs_layout_list-no_hline = gc_true.
gs_layout_list-no_vline = gc_true.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = g_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_STRUCTURE_NAME = gc_structure
IT_FIELDCAT = gt_fieldcat_list
I_SAVE = gc_save
IS_VARIANT = gs_variant
IT_EVENTS = gt_eventtab_list
IS_LAYOUT = gs_layout_list
IT_SORT = gt_sort
is_print = gs_print
TABLES
T_OUTTAB = gt_output_value
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.Hi,
Please go through the following code and make necessary changes in your program.
*LAYOUT STRUCTURE
LAYOUT TYPE LVC_S_LAYO.
*ASSIGNING VALUES TO LAYOUT STRUCTURE
LAYOUT-ZEBRA = 'X'.
LAYOUT-GRID_TITLE = 'Flights' .
LAYOUT-CWIDTH_OPT = 'X'.
LAYOUT-SMALLTITLE = 'X'.
LAYOUT-NO_HGRIDLN = 'X'.
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME = 'SFLIGHT'
IS_VARIANT =
I_SAVE =
I_DEFAULT = 'X'
IS_LAYOUT = LAYOUT
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO = -
How to remove new line from string
I have a string say following
String line = "one\ntwo\nthree";Now i am trying to remove new line from string. For this i did following
String txt = line.replaceAll("\\n","");But i see still new line is occuring. Is it correct way. Please advice me.Ok. I was just using \n instead of \r\n. And i am in windows. I will give a try with \r\n
Ok i tried using following , but it doesnt work.
line = line.replaceAll("\\r\n","");Am i missing anything here. Please guide me.
Edited by: ArpanaK on Oct 8, 2007 4:44 PM -
Making a Cut Line, around a vector image.
The job: I have thousands of little vector images i need to put a cutline around.
The solution: I have a little program that will record my mouse and keyboard strokes, repeat said recording as many times as i tell it to, so i can easily automate all the work i have to do.
The problem: I need to find a way (preferably using illustrator only) to more reliably put a cutline around a vector image. Now I know of a few ways to do this, but so far none work across the board on all vector images.
For example: I've tried making a copy of the vector image layer (theres only one layer on all these files) selecting the copy layer, then hitting the Unite button on the Pathfinder window. On most vectors this joins all the segments into one solid object that i can then put just a stroke on and voila, i have a cutline to rename CutContour and I'm good to go. But on some there are stray lines even after hitting the Unite button (i assume just left over from the original artist) and unfortunately cleaning up stray points doesn't clean it up since there short lil trash line segments left over, not just points.
Normally if it were just a few images i would go in and delete them by hand, but i can't do that if I'm automating this. I could maybe rasterize it and get it to work, but i need to keep it a vector to blow up huge later.
There has to be some way after selecting everything on one layer, to then tell illustrator to make that selection one solid object,.. outlined, no lines or shapes inside, filled one solid color, regardless of what it has selected.
Anyone know how to do this?maryjanejungle wrote:
Thanks for taking the time to illustrate that for me, good to know,.. doesn't seem to work with the dino image though, when you offset the line, it just blows up the little stray line segments too, then when you click Unite there still there. Nothing we're doing is actually looking for the outer most edge,.. or if this were photoshop i could fill in an area with a color,.. if it could some how do that, just fill the area solid and treat it as one shape on one layer.
If you expand the appearance and turn it into a Live Paint Group you can color the stray paths so to speak with a stroke of none.
But this might work as well
Copy the art and paste behind
Use the Unite filter in the pathfinder
give the stroke the color of black
then go to Effect>Path>Offset Path
this might work, I did not try this on the dragon and i am afraid I trashed it yu will have to repost the file as it is not available on that download a page.
If yo still have extra paths showing in the toes of the dragon then expand the art turn it into a live paint group with the option to paint strokes and with the Live paint brush stroke it with a color of either none or white.
The Live Paint Bucket becomes a brush when hovered over a stroke is strokes are check as an option for painting. -
JS CS3 How can I find -and delete- anchored empty images frames
I have a script that works fine with text,
I need the same function, but find and remove anchored empty image frames
thx
var myDoc = app.activeDocument
for(var myCounter = myDoc.textFrames.length-1; myCounter>=0; myCounter--)
var myFrames = myDoc.textFrames[myCounter]
if (myDoc.textFrames[myCounter].contents == ""){
myDoc.textFrames[myCounter].remove()I'd do it this way:
1. Grab the document's allPageItems.
2. Iterate over it, ignoring text frames.
3. Check to see: (a) if the parent is a character and (b) if the graphics collection of the page item is empty. If so, delete it.
Dave -
How to remove a particular gadget from windows7 image
sir how to remove a particular gadget from all other existing gadgets in windows 7sp1 image, can we do it by DISM?
Hi,
If the above method doesn't work, you can try pre-configuring sidebar gadgets using unattend.xml, which can be used to override Sidebar default settings.
To disable Windows sidebar gadgets when windows load, you can configure this following in your unattend.xml.
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"
versionScope="nonSxS" processorArchitecture="x86">
<SidebarOnByDefault>false</SidebarOnByDefault>
</component>
</settings>
</unattend>
For detailed information, you can refer to
http://blogs.msdn.com/b/sidebar/archive/2007/03/08/pre-configuration-of-sidebar-gadgets-using-unattend-xml.aspx
Or try customize windows using sysprep tool
http://www.sevenforums.com/tutorials/286053-system-preparation-tool-use-customize-windows.html
Andy Altmann
TechNet Community Support -
Remove black lines from a tiff image in Photoshop.
Hi,
I am developing an automation plugin in Ps. I have images which contains text, border and vertical lines. I need to remove the lines and border from the image. The problem is that the color of text,line and border are same ie. black.
I tried reading pixel by pixel but couldn't differentiate between the lines and text as both are of same color.
Can anyone suggest some other way to achive this?
Thanks in advance.Just to clarify the situation for us. You want to remove the black frame and the vertical lines while leaving the black rectangle and the text intact in the image? Is this correct?
You also mentioned you are attempting to create an "automation plug-in for Photoshop"
You say you have other images, I'm assuming they are different for the one you posted but you want the "plug-in" to delete the black frame & vertical lines from a number of different images?
Will the black rectangle always be in the same exact position and will the image dimensions for all the images always be the same?
As Noel said, you should go to the Photoshop SDK forum. Explain to them what you want to do and that you want to do this on many different images.
As an afterthought, a Plug-in is different from a Photoshop Action. Perhaps this could be partially done with an Action that allows for a pause to select or change something before continuing the action.
And no, I don't create Actions myself so I can't help. Do some reading and see what you can come up with.
Maybe you are looking for
-
Hard Drive No Longer Showing Up In My Computer
I Purchased an HP Pavilion dv7-6188ca Entertainment Notebook PC back in December of 2011 and had no problems up until this point. I noticed today that my secondary internal hard drive is no longer working. It doesn't show up in My Computer any longer
-
Weather on maps no longer in degrees celcius? help
for some reason the weather on nokia maps shows temperature in degrees F, it used to be in degrees celcius, how can I get it back to degrees C?
-
Changes in web catalog not reflected in disconnected remote machines
Hi I am using OBIEE 10.. i have added another field in the Column selector view for a report.. But the selection is not available in the reports in remote machines even after disconnected sync... The report has been modified for various countries.. T
-
Help on Radio Buttons - Retreiving the value in a Servlet
I am trying to use a Servlet to get values of list of Radio buttons in from a JSP. The problem is that I am getting a "null" My JSP has the following: <form name="AddNewClient" action="AddNewClient" method="POST"> <input type="radio" name="TypeOfBusi
-
Why do button functions included in external actionscript not persist across frames?
this one drives me nuts! if i include an external actionscript file in frame one of my movie, then [as you'd expect] all the functions, global variables etc contained in that external AS file are available throughout my movie - with one notable excep